/*------------------------------------------------------------------------------------------------------------- */
/*                                           Intro Section                                                      */
/*------------------------------------------------------------------------------------------------------------- */

.intro {
  background: linear-gradient(to right, #8CE3E7 0%, #7A9AB6 50%, #666C73 100%);
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 30px;
}

h1 {
  color: #2a4445;
  font-family: "Roboto", Sans-serif;
  font-size: 65px;
  font-weight: 700;
  margin-bottom: 10px;
}

.association-text {
  color: #2a4445;
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  margin-top: 10px;
  opacity: 0.8;
}

.subtitle {
  color: #385a5c;
  font-family: "Poppins", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  margin-top: 15px;
}

/*------------------------------------------------------------------------------------------------------------- */
/*                                           Chat Container                                                     */
/*------------------------------------------------------------------------------------------------------------- */

.chat-container {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 20px;
}

/*------------------------------------------------------------------------------------------------------------- */
/*                                           Quick Start Card                                                   */
/*------------------------------------------------------------------------------------------------------------- */

.quick-start-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(140, 227, 231, 0.2);
  text-align: center;
}

.quick-start-card h3 {
  color: #2a4445;
  font-family: "Roboto", Sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

.quick-start-card h3 i {
  color: #8CE3E7;
  margin-right: 10px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.quick-action-btn {
  background: linear-gradient(135deg, #8CE3E7 0%, #7A9AB6 100%);
  border: none;
  border-radius: 15px;
  padding: 20px;
  color: white;
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.quick-action-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(140, 227, 231, 0.4);
}

.quick-action-btn i {
  font-size: 30px;
}

/*------------------------------------------------------------------------------------------------------------- */
/*                                           Chat Messages                                                      */
/*------------------------------------------------------------------------------------------------------------- */

.chat-messages {
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafa;
  border-radius: 20px;
  margin-bottom: 20px;
  display: none; /* Hidden until first message */
}

.chat-messages.active {
  display: block;
}

.message {
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-user {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.message-assistant {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.avatar-user {
  background: linear-gradient(135deg, #8CE3E7 0%, #7A9AB6 100%);
  color: white;
}

.avatar-assistant {
  background: linear-gradient(135deg, #8CE3E7 0%, #7A9AB6 100%);
  color: white;
}

.message-content {
  max-width: 70%;
  padding: 15px 20px;
  border-radius: 15px;
  font-family: "Poppins", Sans-serif;
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
}

.message-user .message-content {
  background: #7A9AB6;
  color: white;
  border-bottom-right-radius: 5px;
}

.message-assistant .message-content {
  background: white;
  color: #385a5c;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.message-content pre {
  background: #f4f4f4;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 10px 0;
}

.message-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.message-content h1 {
  font-size: 20px;
  font-weight: 700;
  color: inherit;
  margin: 10px 0 8px 0;
}

.message-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: inherit;
  margin: 8px 0 6px 0;
}

.message-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  margin: 6px 0 4px 0;
}

.message-content strong {
  font-weight: 600;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 10px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7A9AB6;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/*------------------------------------------------------------------------------------------------------------- */
/*                                           Chat Input                                                         */
/*------------------------------------------------------------------------------------------------------------- */

.chat-input-container {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(140, 227, 231, 0.2);
}

.input-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 15px;
  font-family: "Poppins", Sans-serif;
  font-size: 15px;
  resize: none;
  max-height: 150px;
  transition: all 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: #8CE3E7;
  box-shadow: 0 0 0 3px rgba(140, 227, 231, 0.1);
}

.send-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #8CE3E7 0%, #7A9AB6 100%);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(140, 227, 231, 0.4);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.file-upload-section {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafa;
  border-radius: 10px;
  border: 1px dashed #8CE3E7;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", Sans-serif;
  font-size: 14px;
  color: #385a5c;
}

.file-info i.fa-file-pdf,
.file-info i.fa-file-word,
.file-info i.fa-file-alt {
  color: #8CE3E7;
  font-size: 18px;
}

.remove-file-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.remove-file-btn:hover {
  background: #e0e0e0;
  color: #d32f2f;
}

.input-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
}

.action-btn {
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px 15px;
  font-family: "Poppins", Sans-serif;
  font-size: 14px;
  color: #385a5c;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #f8fafa;
  border-color: #8CE3E7;
}

.action-btn i {
  margin-right: 5px;
}

/*------------------------------------------------------------------------------------------------------------- */
/*                                           Features Section                                                   */
/*------------------------------------------------------------------------------------------------------------- */

.features-section {
  margin: 60px auto;
  padding: 40px 20px;
}

.features-section h2 {
  text-align: center;
  color: #2a4445;
  font-family: "Roboto", Sans-serif;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(140, 227, 231, 0.15);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(140, 227, 231, 0.25);
}

.feature-card i {
  font-size: 50px;
  color: #8CE3E7;
  margin-bottom: 20px;
}

.feature-card h4 {
  color: #2a4445;
  font-family: "Roboto", Sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-card p {
  color: #385a5c;
  font-family: "Poppins", Sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/*------------------------------------------------------------------------------------------------------------- */
/*                                           Responsive Design                                                  */
/*------------------------------------------------------------------------------------------------------------- */

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  .subtitle {
    font-size: 16px;
  }

  .quick-start-card {
    padding: 25px;
  }

  .quick-start-card h3 {
    font-size: 22px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .message-content {
    max-width: 85%;
  }

  .chat-input {
    font-size: 14px;
  }

  .features-section h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .intro {
    padding: 40px 15px;
  }

  h1 {
    font-size: 32px;
  }

  .quick-start-card {
    padding: 20px;
  }

  .quick-action-btn {
    padding: 15px;
    font-size: 14px;
  }

  .quick-action-btn i {
    font-size: 24px;
  }

  .message-content {
    max-width: 90%;
    font-size: 14px;
  }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #8CE3E7;
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #7A9AB6;
}

