/* AI Chatbot Page Styles */
/* ===== BASE STYLES ===== */
:root {
    --primary: #4a6fa5;
    --primary-light: #6d8fc7;
    --secondary: #ff7e5f;
    --secondary-light: #ff9e87;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* ===== BUTTON STYLES ===== */
  .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
  }

  .btn-primary {
    background-color: var(--primary);
    color: var(--white);
  }

  .btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }

  .btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
  }

  .btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
  }

  .btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
  }

  .btn-secondary:hover {
    background-color: var(--secondary-light);
    box-shadow: var(--shadow-md);
  }

  .btn-danger {
    background-color: var(--danger);
    color: var(--white);
  }

  .btn-danger:hover {
    background-color: #c0392b;
  }

  /* ===== HEADER STYLES ===== */
  header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
  }

  .logo i {
    color: var(--secondary);
    font-size: 1.8rem;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.9) 0%, rgba(255, 158, 135, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1575425186775-b8de9a427e67?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
  }

  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
  }

  /* ===== MAIN CONTENT SECTION ===== */
  .checker {
    padding: 80px 0;
    background-color: var(--white);
  }

  .checker-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
  }

  .checker-header {
    text-align: center;
    margin-bottom: 30px;
  }

  .checker-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .checker-header p {
    color: var(--gray);
    font-size: 1.1rem;
  }

  /* ===== FORM STYLES ===== */
  .checker-form {
    margin-bottom: 30px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 1rem;
  }

  .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
  }

  .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
  }

  select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
  }

  /* ===== RESULT CARD STYLES ===== */
  .result-card {
    padding: 25px;
    border-radius: var(--radius-md);
    margin-top: 30px;
    display: none;
    animation: fadeIn 0.5s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .result-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }

  .result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .result-title {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .result-text {
    margin-bottom: 15px;
    line-height: 1.6;
  }

  /* Severity Levels */
  .severity-low {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success);
  }

  .severity-low .result-icon {
    background-color: var(--success);
  }

  .severity-moderate {
    background-color: #fff8e1;
    border-left: 4px solid var(--warning);
  }

  .severity-moderate .result-icon {
    background-color: var(--warning);
  }

  .severity-high {
    background-color: #ffebee;
    border-left: 4px solid var(--danger);
  }

  .severity-high .result-icon {
    background-color: var(--danger);
  }

  /* Action Items */
  .action-items {
    margin-top: 20px;
  }

  .action-items h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark);
  }

  .action-items ul {
    padding-left: 20px;
    margin-bottom: 15px;
  }

  .action-items li {
    margin-bottom: 8px;
    line-height: 1.5;
  }

  /* ===== BENEFITS SECTION ===== */
  .benefits {
    padding: 80px 0;
    background-color: var(--light-gray);
  }

  .section-title {
    text-align: center;
    margin-bottom: 50px;
  }

  .section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }

  .section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
  }

  .section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
  }

  .benefit-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
  }

  .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }

  .benefit-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
  }

  .benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
  }

  .benefit-card p {
    color: var(--gray);
    line-height: 1.6;
  }

  /* ===== CTA SECTION ===== */
  .cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    text-align: center;
  }

  .cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
  }

  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  /* ===== FOOTER STYLES ===== */
  footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer-about {
    grid-column: 1 / -1;
    max-width: 400px;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
  }

  .footer-logo i {
    color: var(--secondary);
  }

  .footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.6;
  }

  .social-links {
    display: flex;
    gap: 15px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
  }

  .social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
  }

  .footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
  }

  .footer-links ul {
    list-style: none;
  }

  .footer-links li {
    margin-bottom: 12px;
  }

  .footer-links a {
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
  }

  .footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-left: 5px;
  }

  .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
  }

  /* ===== RESPONSIVE STYLES ===== */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2.2rem;
    }

    .hero p {
      font-size: 1rem;
    }

    .checker-container {
      padding: 30px 20px;
    }

    .checker-header h2 {
      font-size: 1.8rem;
    }

    .section-title h2 {
      font-size: 2rem;
    }

    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }

    .btn {
      width: 100%;
      margin-bottom: 10px;
    }
  }

  @media (max-width: 576px) {
    .header-container {
      flex-direction: column;
      gap: 15px;
    }

    .hero {
      padding: 80px 0;
    }

    .benefits-grid {
      grid-template-columns: 1fr;
    }

    .footer-container {
      grid-template-columns: 1fr;
    }
  }

.chatbot-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chatbot-header {
  text-align: center;
  margin-bottom: 2rem;
}

.chatbot-header h1 {
  color: #4a6fa5;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.chatbot-header p {
  color: #6c757d;
  font-size: 1.1rem;
}

.chatbot-icon {
  font-size: 2.5rem;
  color: #4a6fa5;
  margin-bottom: 1rem;
}

.chat-window {
  height: 500px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.5rem;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 1rem;
}

.user-message {
  background: #4a6fa5;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.bot-message {
  background: #e9ecef;
  color: #212529;
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

.chat-input {
  display: flex;
  gap: 0.8rem;
}

#user-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid #e9ecef;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

#user-input:focus {
  border-color: #4a6fa5;
}

#send-button {
  background: #4a6fa5;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

#send-button:hover {
  background: #4a6fa5;
}

.suggested-questions {
  margin-top: 2rem;
}

.suggested-questions h3 {
  margin-bottom: 1rem;
  color: #6c757d;
  font-size: 1.1rem;
}

.question-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.question-btn {
  background: #e9ecef;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: #212529;
}

.question-btn:hover {
  background: #4a6fa5;
  color: white;
}

/* Typing Indicator */
.typing-indicator {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background: #e9ecef;
  border-radius: 18px;
  margin-bottom: 1rem;
  width: fit-content;
}

.typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #6c757d;
  border-radius: 50%;
  margin: 0 2px;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .chatbot-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .chat-window {
    height: 400px;
    padding: 1rem;
  }

  .message {
    max-width: 90%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  #user-input {
    padding: 0.6rem 1rem;
  }

  .question-buttons {
    gap: 0.5rem;
  }

  .question-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .chatbot-header h1 {
    font-size: 1.8rem;
  }

  .chatbot-header p {
    font-size: 1rem;
  }

  .chat-input {
    flex-direction: column;
  }

  #send-button {
    padding: 0.6rem;
    width: 100%;
  }
}
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 5% 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-column h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column li {
  margin-bottom: 0.8rem;
}
.footer-column a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-column a:hover {
  color: var(--secondary);
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}
.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}
.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links {
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}
