@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
:root {
  
  --text-color: #222;
  --subheading-color: #A0A0A0;
  --placeholder-color: #6C6C6C;
  --primary-color: #FFF;
  --secondary-color: #E9EEF6;
  --secondary-hover-color: #DBE1EA;
}

body {
  background: var(--primary-color);
}
.header, .chat-list .message, .typing-form {
  margin: 0 auto;
  max-width: 980px;
}
.header {
  margin-top: calc(70px + 6vh);
  padding: 1rem;
  overflow-x: hidden;
}
body.hide-header .header {
  margin: 0;
  display: none;
}
.header :where(.title, .subtitle) {
  color: var(--text-color);
  font-weight: 500;
  line-height: 4rem;
}
.header .title {
  width: fit-content;
  font-size: 3rem;
  background-clip: text;
  background: linear-gradient(to right, #4285f4, #d96570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header .subtitle {
  font-size: 2.6rem;
  color: var(--subheading-color);
}
.suggestion-list {
  width: 100%;
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin-top: 9.5vh;
  overflow: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.suggestion-list .suggestion {
  cursor: pointer;
  padding: 1.25rem;
  width: 222px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: 0.75rem;
  justify-content: space-between;
  background: var(--secondary-color);
  transition: 0.2s ease;
}
.suggestion-list .suggestion:hover {
  background: var(--secondary-hover-color);
}
.suggestion-list .suggestion :where(.text, .icon) {
  font-weight: 400;
  color: var(--text-color);
}
.suggestion-list .suggestion .icon {
  width: 42px;
  height: 42px;
  display: flex;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  align-self: flex-end;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  color: var(--text-color);
  background: var(--primary-color);
}
.chat-list {
  padding: 2rem 1rem 12rem;
  max-height: calc(100vh - 60px); /* Subtract navbar height */
  margin-top: 60px; /* Add navbar height */
  overflow-y: auto;
  scrollbar-color: #999 transparent;
}
.chat-list .message.incoming {
  margin-top: 1.5rem;
}
.chat-list .message .message-content {
  display: flex;
  width: 100%;
  margin: 1rem 0;
}

.message-bubble {
  max-width: 70%;
  padding: 1rem;
  border-radius: 1rem;
  position: relative;
}

.message-inner {
  position: relative;
}


.message-bubble.bot-message {
  background: var(--secondary-color);
  margin-right: auto;
  border-bottom-left-radius: 0.25rem;
}

.message-bubble.user-message {
  background: #2B5278;
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
}

.user-message .text {
  color: #fff;
}

.bot-message .text {
  color: var(--text-color);
}

.timestamp {
  font-size: 0.75rem;
  color: var(--subheading-color);
  display: block;
  margin-top: 0.25rem;
}

.user-message .timestamp {
  color: rgba(255, 255, 255, 0.7);
}

.chat-list .message.error .text {
  color: #e55865;
}

.chat-list .message.loading .text {
  display: none;
}

.chat-list .message .icon {
  color: var(--text-color);
  cursor: pointer;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  font-size: 1.25rem;
  margin-left: 3.5rem;
  visibility: hidden;
}
.chat-list .message .icon.hide {
  visibility: hidden;
}
.chat-list .message:not(.loading, .error):hover .icon:not(.hide){
  visibility: visible;
}
.chat-list .message .icon:hover {
  background: var(--secondary-hover-color);
}
.chat-list .message .loading-indicator {
  display: none;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.chat-list .message.loading .loading-indicator {
  display: flex;
}

.loading-indicator .loading-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.loading-indicator .loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-indicator .loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.typing-area {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  padding: 1rem;
  background: var(--primary-color);
}
.typing-form .input-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.typing-form .preview-and-validation {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 32px;
}

.typing-form .input-field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  width: 100%;
}


.typing-form .input-row .attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  z-index: 3;
}
.typing-form .input-row .attach-preview .thumb {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.typing-form .input-row .attach-preview .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.typing-form .input-row .attach-preview .thumb .remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e55757;
  color: white;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.typing-input.input-error {
  box-shadow: 0 0 0 3px rgba(229,87,87,0.15) !important;
  outline: none !important;
}
.validation-message {
  color: #e55757;
  font-size: 0.9rem;
  padding: 6px 12px;
  display: none;
  z-index: 4;
  background: rgba(229,87,87,0.1);
  border-radius: 6px;
  margin-left: auto;
  white-space: nowrap;
}
.validation-message.show {
  display: block;
}
.typing-form .typing-input {
  flex: 1 1 auto;
  height: 56px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-color);
  padding: 0 1.25rem;
  padding-right: 160px; 
  border-radius: 28px;
  background: var(--secondary-color);
}
.typing-form .typing-input:focus {
  background: var(--secondary-hover-color);
}
.right-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.action-btn:hover {
  background: var(--secondary-hover-color);
}

.attach-preview {
  display: none; 
}


.message-bubble .attachments {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.message-bubble .attachment-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.message-bubble .attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message-bubble .file-badge {
  font-size: 0.8rem;
  padding: 6px;
}
.typing-form .typing-input::placeholder {
  color: var(--placeholder-color);
}
.typing-area .icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  font-size: 1.4rem;
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  transition: 0.2s ease;
}
.typing-area .icon:hover {
  background: var(--secondary-hover-color);
}
.typing-form #send-message-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  position: absolute;
  right: calc(12px + (44px * 2) + 1.2rem); 
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}


.typing-form #send-message-button,
.action-btn {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.typing-form #send-message-button:focus,
.typing-form #send-message-button:active,
.action-btn:focus,
.action-btn:active {
  box-shadow: none !important;
  outline: none !important;
}

.typing-form #send-message-button {
  pointer-events: auto;
}
.typing-area .disclaimer-text {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: var(--placeholder-color);
}

@media (max-width: 768px) {
  .header {
    margin-top: calc(60px + 4vh);
  }
  .header :is(.title, .subtitle) {
    font-size: 2rem;
    line-height: 2.6rem;
  }
  .header .subtitle {
    font-size: 1.7rem;
  }
  .typing-area :where(.typing-form, .action-buttons) {
    gap: 0.4rem;
  }
  .typing-form .input-wrapper {
    height: 50px;
  }
  .typing-form .typing-input {
    padding: 1.1rem 3.5rem 1.1rem 1.2rem;
    padding-right: 120px; 
  }
  .typing-form #send-message-button {
    right: calc(12px + 44px);
  }
  .typing-area .icon {
    height: 50px;
    width: 50px;
  }
  .typing-area .disclaimer-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
}



.navbar {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 5px auto;
}

.navbar-logo h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-left: 20px;
}

.navbar-menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: orangered;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: rgb(0, 0, 0);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: -100%;
        width: 200px;
        background-color: #ffffff;
        padding: 1rem;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .navbar-menu.active {
        display: flex;
        right: 0;
    }

    .navbar-menu li {
        margin: 15px 0;
        text-align: right;
    }

    .navbar-menu a {
        display: block;
        padding: 5px 15px;
        font-size: 1.1rem;
    }

    .navbar-toggle {
        display: flex;
        padding: 5px;
        cursor: pointer;
    }

    .navbar-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: #000;
        margin: 3px 0;
        transition: 0.3s;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}