@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #202123;
   background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOT1PPgEKST946mz2kvTqAlOlVfqY_AUUsd0JOgDLHnGTVmccb5RfAI3zrwTXkWUQsWf4a-ul4KMstPjTqN8wzV_FBBW1NCV6uX85ePoOq5LDdred4k3zlFDSRweHpigVa8VYvkgY2CF5dT6_PShIJk=w626-h417-s-no?authuser=0');
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
}

.chat-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #303031;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #e0e0e0;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-container {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  height: 100vh;
  background: rgba(24, 24, 24, 0.7);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.chat-body {
  flex: 1;
  padding: 20px;
  padding-top: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: thin;
  scrollbar-color: #3c3c3d #575757;
}

.chat-body .message {
    display: flex;
    align-items: center;
}

.chat-body .bot-message .message-text {
    background: #40414f;
    color: #e0e0e0;
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 100px;
    max-width: 85%;
}

.chat-body .bot-message .message-text:hover {
    white-space: normal;
    word-wrap: break-word;
}

.chat-body .user-message {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.chat-body .user-message .message-text {
    background: #2a2a2b;
    color: #fff;
    border-radius: 12px;
    padding: 15px 25px;
    display: inline-block;
    word-break: break-word;
    min-width: 100px;
    max-width: 85%;
}

.chat-body .user-message .message-text:hover {
    white-space: normal;
    word-wrap: break-word;
}

.chat-footer {
  background: #232324;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #40414f;
}

.chat-form {
  display: flex;
  align-items: center;
  background: #202123;
  border-radius: 8px;
  padding: 5px 10px;
  flex: 1;
  border: 1px solid #40414f;
  gap: 10px;
}

.chat-form .message-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0e0e0;
  outline: none;
  font-size: 1rem;
  resize: none;
  padding: 8px;
  height: 40px;
  overflow-y: auto;
}

.chat-form .message-input:focus {
  outline: none;
  border: 1px solid #464646;
}

.chat-form .chat-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-form .file-upload-wrapper {
  margin-right: 10px;
}

.chat-form .file-upload-wrapper input[type="file"] {
  display: none;
}

.chat-form .file-upload-wrapper label {
  background: none;
  color: #707070;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.chat-form .file-upload-wrapper label:hover {
  color: #363636;
}

.chat-form .chat-controls button {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-form .chat-controls #send-message {
  background: none;
  color: #707070;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chat-form .chat-controls #send-message:hover {
  color: #131313;
}

.chat-body::-webkit-scrollbar {
  width: 8px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

.chat-body::-webkit-scrollbar-track {
  background: #272727;
}

.file-preview {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  justify-content: center;
}

.file-preview img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: all 0.3s ease;
  border: 2px solid #40414f;
  margin-top: 2px;
}

.file-preview img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.pdf-preview {
  width: 100%;
  height: 600px;
  border: 2px solid #40414f;
  border-radius: 8px;
  margin-top: 12px;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom-overlay.active {
  opacity: 1;
  display: flex;
}

.zoom-overlay img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.zoom-overlay.active img {
  transform: scale(1);
}

@media screen and (max-width: 600px) {
  .chatbot-popup {
    width: 100%;
    right: 0;
    bottom: 0;
    border-radius: 0;
    height: 100%;
  }

  .chat-header .header-info .logo-text {
    font-size: 1.1rem;
  }

  .chat-body {
    height: 100%;
    margin-bottom: 0;
  }

  .chat-body .message .message-text {
    max-width: 85%;
  }

  .chat-footer .chat-form {
    border-radius: 0;
    border-radius: 25px;
  }

  .chat-footer .chat-form .message-input {
    border-radius: 0;
  }

  .chat-footer .chat-form .chat-controls {
    padding-right: 10px;
  }

  .chat-footer .chat-form .chat-controls button {
    height: 40px;
    width: 40px;
  }
}

.message.user-message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message.user-message .message-text {
    text-align: center;
    margin-bottom: 2px;
}

