@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&family=Noto+Sans+Myanmar:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2C5282;
    --dark-blue: #1A365D;
    --mid-blue: #4299E1;
    --light-blue: #90CDF4;
    --accent-blue: #BEE3F8;
    --green: #38A169;
    --red: #E53E3E;
    --orange: #DD6B20;
    --cream: #FAFAFA;
    --gray: #718096;
    --light-gray: #E2E8F0;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    font-family: "Poppins", sans-serif;
}

body {
    font-family: inherit;
    background: #F7FAFC;
    color: #2D3748;
    line-height: 1.6;
}

/* Language-specific font fallbacks for full glyph support */
html[lang="ar"],
html[lang="ps"] {
    font-family: "Noto Sans Arabic", "Noto Naskh Arabic", "Amiri", "Scheherazade New", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[lang="my"] {
    font-family: "Noto Sans Myanmar", "Myanmar Text", "Nirmala UI", "Padauk", "Segoe UI", Arial, sans-serif;
}

html[lang="ar"] .hero h1,
html[lang="ps"] .hero h1,
html[lang="my"] .hero h1,
html[lang="ar"] .footer-content h3,
html[lang="ps"] .footer-content h3,
html[lang="my"] .footer-content h3 {
    font-weight: 600;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    background: var(--light-blue);
    color: var(--dark-blue);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.lang-btn:hover {
    background: var(--mid-blue);
    color: white;
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: white;
    padding: 100px 20px 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}


/* Navigation */
nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
}

.nav-btn {
    background: var(--light-gray);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--mid-blue);
    color: white;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--primary-blue);
    color: white;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Card */
.welcome-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 30px;
}

.quick-links {
    margin-top: 30px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background: var(--accent-blue);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.link-card:hover {
    background: var(--light-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.link-card i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.link-card span {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Illness Cards */
.illness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.illness-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.illness-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--mid-blue), var(--primary-blue));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.illness-type {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.card-image.contain {
    object-fit: contain;
    background: white;
}

.section-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 15px auto 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.symptom-list {
    list-style: disc;
    list-style-position: outside;
    margin: 15px 0;
    padding-left: 20px;
}

.symptom-list li {
    padding: 5px 0;
    border-bottom: 1px solid var(--light-gray);
    display: list-item;
}

.symptom-list li::marker {
    content: '•';
    color: var(--mid-blue);
    font-size: 20px;
    line-height: 1.2;
    margin-top: 2px;
}

.symptom-list li strong {
    display: inline-block;
    min-width: 140px;
}

.treatment-info, .prevention-info {
    background: var(--accent-blue);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--mid-blue);
}

.card-footer {
    padding: 15px 20px;
    background: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}


/* Mental Health Cards */
.mental-health-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.mental-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    flex-direction: column;
}

/* Nutrition Cards */
.nutrition-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.nutrition-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    flex-direction: column;
}

/* Vaccine Cards */
.vaccine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.vaccine-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vaccine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.vaccine-card i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 15px;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.resource-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.clinic-list {
    list-style: none;
    margin: 20px 0;
}

.clinic-list li {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clinic-list li:last-child {
    border-bottom: none;
}

/* Survey Section */
.survey-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-top: 30px;
}

.survey-question {
    margin-bottom: 30px;
}

.survey-question h4 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    background: var(--light-gray);
    border: 2px solid transparent;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: inherit;
}

.option-btn:hover {
    background: var(--accent-blue);
}

.option-btn.selected {
    background: var(--mid-blue);
    color: white;
    border-color: var(--primary-blue);
}

.submit-btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 5px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background: #2F855A;
    transform: translateY(-2px);
}

/* Rating Scale Styles */
.rating-scale {
    background: var(--accent-blue);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--dark-blue);
    font-weight: 500;
}

.scale-options {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.scale-label {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.scale-label input[type="radio"] {
    display: none;
}

.scale-number {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--mid-blue);
    color: var(--dark-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.scale-label:hover .scale-number {
    background: var(--light-blue);
    transform: scale(1.1);
}

.scale-label input[type="radio"]:checked + .scale-number {
    background: var(--mid-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3);
}

/* Update navigation button text */
.nav-btn[data-section="survey"] {
    /* Keep the text as "Survey" since that's what's in your navigation */
}

/* Optional: Change section title if you want to be clearer */
#survey h2 {
    color: var(--primary-blue);
}

/* Add a small note at the top of the survey */
#survey > p:first-of-type {
    font-style: italic;
    color: var(--mid-blue);
    margin-bottom: 30px;
}

/* Responsive rating scale */
@media (max-width: 768px) {
    .scale-options {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .scale-label {
        flex: 0 0 calc(20% - 8px);
    }
    
    .scale-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}

@media (max-width: 480px) {
    .scale-label {
        flex: 0 0 calc(25% - 8px);
    }
}
/* Form Input Field Styling - FIX FOR PLAIN TEXT LOOK */
.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 1rem;
}

.form-group label i {
    color: var(--mid-blue);
    margin-right: 8px;
}

/* Input and Textarea Styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
#feedback-name,
#feedback-email,
#feedback-message {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-blue);
    box-sizing: border-box;
    margin-top: 5px;
}

/* Focus States */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
#feedback-name:focus,
#feedback-email:focus,
#feedback-message:focus {
    outline: none;
    border-color: var(--mid-blue);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    background-color: #f8fafc;
}

/* Placeholder Styling */
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder,
#feedback-name::placeholder,
#feedback-email::placeholder,
#feedback-message::placeholder {
    color: var(--gray);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Textarea Specific */
.form-group textarea,
#feedback-message {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

/* Make sure the form container has proper width */
.survey-section form {
    width: 100%;
}

/* Style for all form inputs (catch-all rule) */
input[type="text"], 
input[type="email"], 
textarea {
    display: block;
    width: 100%;
    max-width: 800px;
    padding: 15px;
    margin: 10px 0 20px 0;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

/* Ensure labels are styled properly */
.survey-question h4 {
    color: var(--dark-blue);
    margin: 25px 0 15px 0;
    font-size: 1.1rem;
}

/* Required field indicator */
.survey-question h4::after {
    content: ' *';
    color: var(--red);
    font-size: 0.9em;
}

/* Remove asterisk from non-required questions */
.survey-question:not(:has(input[required])) h4::after {
    content: '';
}

/* Emergency Section */
.emergency-box {
    background: linear-gradient(135deg, #F56565, #E53E3E);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
}

.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.emergency-btn {
    background: white;
    color: var(--red);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.emergency-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.partner-logo {
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] .symptom-list li {
    text-align: right;
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .card-header,
[dir="rtl"] .card-footer,
[dir="rtl"] .clinic-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .illness-card,
[dir="rtl"] .mental-card,
[dir="rtl"] .nutrition-card,
[dir="rtl"] .vaccine-card,
[dir="rtl"] .resource-card {
    text-align: right;
}

[dir="rtl"] .symptom-list {
    padding-right: 20px;
    padding-left: 0;
}

[dir="rtl"] .symptom-list li:before {
    margin-left: 2px;
    margin-right: 0;
}

[dir="rtl"] .treatment-info,
[dir="rtl"] .prevention-info {
    border-left: none;
    border-right: 4px solid var(--mid-blue);
}

[dir="rtl"] .nav-container {
    justify-content: center;
}

[dir="rtl"] .language-selector {
    flex-direction: row-reverse;
}

[dir="rtl"] .chatbot-header h3,
[dir="rtl"] .chatbot-messages,
[dir="rtl"] .chatbot-input input {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .message {
    text-align: right;
}

[dir="rtl"] .user-message,
[dir="rtl"] .bot-message {
    align-self: flex-end;
}

[dir="rtl"] .chatbot-input {
    flex-direction: row-reverse;
}

body[dir="rtl"] {
    line-height: 1.8;
}

[lang="my"] {
    line-height: 1.75;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-btn {
        text-align: center;
    }
    
    .illness-grid,
    .mental-health-content,
    .nutrition-content,
    .vaccine-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .survey-section {
        padding: 20px;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
        flex-direction: column;
    }
    
    .emergency-contacts {
        grid-template-columns: 1fr;
    }
    
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .options {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
        text-align: center;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-chatbot {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-chatbot:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background: var(--accent-blue);
    color: var(--dark-blue);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: var(--primary-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--light-gray);
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    border-color: var(--mid-blue);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.chatbot-input button {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(44, 82, 130, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.4);
}

/* Loading Animation */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--mid-blue);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-10px); opacity: 1; }
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100% - 40px);
        height: 450px;
        right: 20px;
        bottom: 80px;
    }
    
    .chatbot-toggle span {
        display: none;
    }
    
    .chatbot-toggle {
        padding: 15px;
    }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--mid-blue);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-10px); opacity: 1; }
}

/* Chatbot Messages */
.user-message {
    background: var(--primary-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.bot-message {
    background: var(--accent-blue);
    color: var(--dark-blue);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Ensure chatbot container is visible */
.chatbot-container.active {
    display: flex !important;
}
