/* HealthBot AI — Complete Stylesheet */
:root {
    --primary: #1a6fc4;
    --primary-dark: #0d4d8a;
    --primary-light: #e8f4fd;
    --secondary: #27ae60;
    --accent: #e74c3c;
    --bg: #f0f4f8;
    --white: #ffffff;
    --text: #1e2a3a;
    --text-muted: #6b7a8d;
    --border: #e4eaf2;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
    --radius: 14px;
    --navbar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

img { max-width: 100%; }
a { text-decoration: none; }

/* ================================================================
   NAVBAR
================================================================ */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 77, 138, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: var(--navbar-h);
    transition: background 0.3s, box-shadow 0.3s;
}
.main-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.main-navbar.scrolled {
    background: #0d4d8a;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
}
.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.1;
}
.brand-ai { color: #7ecbff; }
.brand-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.6);
    display: block;
    letter-spacing: 0.3px;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.nav-link-item {
    color: rgba(255,255,255,0.78);
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.87rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link-item:hover,
.nav-link-item.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.nav-btn-admin {
    background: rgba(231,76,60,0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    margin-left: 6px;
}
.nav-btn-admin:hover { background: #c0392b; color: #fff; }

/* Mobile toggle button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.12); }

/* ================================================================
   HERO SECTION
================================================================ */
.hero-section {
    background: linear-gradient(135deg, #1a6fc4 0%, #0d4d8a 55%, #071e3d 100%);
    color: #fff;
    padding: calc(var(--navbar-h) + 60px) 0 60px;
    position: relative;
    overflow: hidden;
}

/* Background shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.shape-1 { width: 520px; height: 520px; top: -160px; right: -80px; }
.shape-2 { width: 300px; height: 300px; bottom: -100px; left: -60px; background: rgba(255,255,255,0.03); }
.shape-3 { width: 180px; height: 180px; top: 60px; left: 38%; background: rgba(126,203,255,0.07); }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left: Content */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.78rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}
.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
}
.hero-title-highlight { color: #7ecbff; }
.hero-subtitle {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.80);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.btn-hero-primary {
    background: #fff;
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-hero-primary:hover {
    background: #e8f4fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero stats row */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; padding: 0 20px; }
.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
}
.hero-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7ecbff;
    line-height: 1.1;
}
.hero-stat-lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}

/* Right: Chat preview */
.hero-visual { display: flex; justify-content: center; }
.hero-chat-preview {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.preview-header {
    background: rgba(0,0,0,0.15);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
}
.preview-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.preview-dot.red    { background: #ff5f57; }
.preview-dot.yellow { background: #febc2e; }
.preview-dot.green  { background: #28c840; }
.preview-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}
.preview-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.preview-msg.user { flex-direction: row-reverse; }
.preview-avatar {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    color: #fff;
}
.preview-bubble {
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    border-bottom-left-radius: 3px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.92);
    max-width: 230px;
    line-height: 1.5;
}
.preview-bubble.user {
    background: rgba(255,255,255,0.9);
    color: var(--primary-dark);
    border-radius: 14px;
    border-bottom-right-radius: 3px;
}
.preview-typing {
    display: flex;
    align-items: center;
    gap: 8px;
}
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    padding: 10px 14px;
    border-radius: 14px;
    border-bottom-left-radius: 3px;
}
.typing-dots span {
    display: block;
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: tdot 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ================================================================
   SECTION SHARED
================================================================ */
.section-header {
    text-align: center;
    margin-bottom: 44px;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
}
.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* ================================================================
   CHAT SECTION
================================================================ */
.chat-section {
    padding: 80px 0;
    background: var(--bg);
}

.chatbot-wrapper {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* Sidebar */
.chat-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: sticky;
    top: calc(var(--navbar-h) + 16px);
}
.sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.sidebar-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-btn {
    width: 100%;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: all 0.2s;
}
.sidebar-btn i { color: var(--primary); width: 16px; text-align: center; flex-shrink: 0; }
.sidebar-btn:hover {
    background: var(--primary-light);
    border-color: #b3d3f0;
    color: var(--primary);
}
.sidebar-info {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sidebar-info-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Chat Window */
.chat-window {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Chat top bar */
.chat-topbar {
    background: linear-gradient(135deg, #1a6fc4, #0d4d8a);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-bot-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}
.chat-bot-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.chat-bot-status {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.chat-clear-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: rgba(255,255,255,0.8);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.chat-clear-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Messages area */
.chat-messages {
    height: 440px;
    overflow-y: auto;
    padding: 22px 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #cdd6e0; border-radius: 10px; }

/* Chat input area */
.chat-input-area {
    padding: 14px 18px;
    background: #fff;
    border-top: 1px solid var(--border);
}
.chat-input-box {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.chat-textarea {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 22px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    resize: none;
    max-height: 100px;
    line-height: 1.5;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.chat-textarea:focus { border-color: var(--primary); background: #fff; }
.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a6fc4, #0d4d8a);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(26,111,196,0.40);
}
.chat-send-btn:active { transform: scale(0.94); }
.chat-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* ================================================================
   CHAT MESSAGES (bubbles)
================================================================ */
.msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: fadeInUp 0.28s ease;
}
.msg-row.user { flex-direction: row-reverse; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.msg-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.bot-av { background: var(--primary); color: #fff; }
.user-av { background: var(--secondary); color: #fff; }

.msg-bubble {
    max-width: 78%;
    padding: 11px 15px;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.6;
    word-wrap: break-word;
}
.bot-bubble {
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    color: var(--text);
}
.user-bubble {
    background: linear-gradient(135deg, #1a6fc4, #0d4d8a);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg-time {
    font-size: 0.65rem;
    color: #aab;
    margin-top: 4px;
    padding: 0 4px;
}
.msg-row.user .msg-time { text-align: right; }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 11px 15px;
    background: #fff;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
    width: fit-content;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.typing-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-7px); }
}

/* Disease card inside chat */
.disease-card { font-size: 0.84rem; }
.disease-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.disease-desc { color: #555; font-size: 0.83rem; margin-bottom: 8px; line-height: 1.5; }
.badge-category {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 10px;
    border: 1px solid #c2daf5;
    display: inline-block;
}
.info-block {
    border-radius: 8px;
    padding: 8px 11px;
    margin-top: 7px;
    border-left: 4px solid;
}
.info-block-danger  { background:#fff5f5; border-color:#e74c3c; }
.info-block-warning { background:#fffbf0; border-color:#f39c12; }
.info-block-success { background:#f0fff4; border-color:#27ae60; }
.info-block-primary { background:#f0f7ff; border-color:#1a6fc4; }
.info-block-info    { background:#f0fbff; border-color:#17a2b8; }
.info-block-title {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.info-block-danger  .info-block-title { color:#e74c3c; }
.info-block-warning .info-block-title { color:#d68910; }
.info-block-success .info-block-title { color:#27ae60; }
.info-block-primary .info-block-title { color:#1a6fc4; }
.info-block-info    .info-block-title { color:#17a2b8; }
.info-list { margin:0; padding-left:16px; font-size:0.82rem; color:#444; }
.info-list li { margin-bottom:2px; line-height:1.5; }
.ask-more { color:#888; font-size:0.78rem; }
.suggested-diseases { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.disclaimer-box {
    background:#fff8e1;
    border:1px solid #ffe082;
    border-radius:8px;
    padding:7px 11px;
    color:#856404;
    font-size:0.76rem;
}
.quick-btn {
    background: var(--primary-light);
    border: 1px solid #c2daf5;
    color: var(--primary);
    border-radius: 14px;
    padding: 4px 11px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.quick-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ================================================================
   DISEASES SECTION
================================================================ */
.diseases-section {
    padding: 80px 0;
    background: #fff;
}

.diseases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.disease-card-item {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 14px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.disease-card-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7ecbff);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.disease-card-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 22px rgba(26,111,196,0.15);
    transform: translateY(-4px);
}
.disease-card-item:hover::after { transform: scaleX(1); }

.disease-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px;
    transition: transform 0.25s;
}
.disease-card-item:hover .disease-card-icon { transform: scale(1.1); }
.disease-card-name {
    font-weight: 700;
    font-size: 0.83rem;
    color: var(--text);
    margin-bottom: 4px;
}
.disease-card-cat {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.disease-card-arrow {
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}
.disease-card-item:hover .disease-card-arrow { opacity: 1; }

/* ================================================================
   FAQ SECTION
================================================================ */
.faq-section {
    padding: 80px 0;
    background: var(--bg);
}

.faq-accordion { display: flex; flex-direction: column; gap: 10px; }

.faq-item-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.faq-item-card.open { border-color: var(--primary); box-shadow: 0 4px 16px rgba(26,111,196,0.12); }
.faq-item-card:hover { box-shadow: var(--shadow-sm); }

.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    gap: 12px;
    transition: background 0.2s;
    font-family: inherit;
}
.faq-question:hover { background: #f8fafc; }
.faq-item-card.open .faq-question { background: var(--primary-light); color: var(--primary); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-answer-body {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border);
    background: #fafcff;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.65;
}
.faq-answer-body p { margin: 0 0 12px; }
.faq-ask-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.faq-ask-btn:hover { background: var(--primary-dark); }

/* ================================================================
   ABOUT SECTION
================================================================ */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: #fff;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.feature-card h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Stats bar */
.stats-bar {
    background: linear-gradient(135deg, #1a6fc4 0%, #0d4d8a 100%);
    border-radius: var(--radius);
    padding: 28px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    text-align: center;
}
.stats-bar-item {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.stats-bar-item i { font-size: 1.3rem; color: #7ecbff; }
.stats-bar-item strong { color: #fff; font-size: 1.4rem; font-weight: 800; }

/* College info card */
.college-card {
    background: var(--primary-light);
    border: 1.5px solid #b3d3f0;
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.college-logo {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    flex-shrink: 0;
}
.college-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.college-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 6px;
    line-height: 1.6;
}
.college-info p.mb-0 { margin-bottom: 0; }

/* ================================================================
   FOOTER
================================================================ */
.main-footer {
    background: linear-gradient(160deg, #0f1f3d 0%, #0a1628 100%);
    color: rgba(255,255,255,0.65);
    padding: 52px 0 0;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.65;
    margin: 0 0 16px;
    color: rgba(255,255,255,0.55);
}
.footer-source-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.source-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
}

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.footer-col a {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: #7ecbff; }
.footer-info-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
}

.footer-disclaimer {
    padding: 18px 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    line-height: 1.6;
}
.footer-bottom {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    gap: 12px;
    flex-wrap: wrap;
}

/* ================================================================
   FAB CHAT BUTTON
================================================================ */
.fab-chat {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #1a6fc4, #0d4d8a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 22px rgba(26,111,196,0.45);
    z-index: 900;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.fab-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(26,111,196,0.55);
    color: #fff;
}
.fab-chat.pulse {
    animation: fabPulse 2s infinite;
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(26,111,196,0.45); }
    50% { box-shadow: 0 6px 32px rgba(26,111,196,0.75), 0 0 0 10px rgba(26,111,196,0.1); }
}

/* ================================================================
   ADMIN PANEL
================================================================ */

/* ---- Sidebar ---- */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a2a4a 0%, #0d1f3c 100%);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    flex-shrink: 0;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}
.sidebar-brand i { font-size: 1.2rem; }
.sidebar-sub {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
    margin-top: 3px;
}
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 14px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.sidebar-close-btn:hover { background: rgba(255,255,255,0.2); }

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}
.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    padding: 8px 20px 4px;
}
.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.68);
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.13);
    color: #fff;
    border-left-color: #7ecbff;
}
.sidebar-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 8px 20px;
}
.logout-link { color: rgba(255,100,100,0.8) !important; }
.logout-link:hover { color: #ff6b6b !important; background: rgba(255,100,100,0.1) !important; }

/* ---- Sidebar Overlay (mobile backdrop) ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1040;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ---- Admin Main Content ---- */
.admin-main {
    margin-left: 250px;
    padding: 24px;
    min-height: 100vh;
    background: #f0f4f8;
    transition: margin-left 0.3s;
}

/* ---- Topbar ---- */
.admin-topbar {
    background: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.sidebar-toggle-btn {
    display: none;
    background: #f0f4f8;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}
.sidebar-toggle-btn:hover { background: #e2eaf3; }
.topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
}
.topbar-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.online-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e8faf0;
    border: 1px solid #b2eacc;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #27ae60;
}
.admin-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f9fc;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}
.admin-user-btn:hover { background: #edf2f8; }
.admin-user-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ---- Stat Cards ---- */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}
.stat-card.blue   { border-color: #1a6fc4; }
.stat-card.green  { border-color: #27ae60; }
.stat-card.orange { border-color: #f39c12; }
.stat-card.red    { border-color: #e74c3c; }
.stat-number { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-label  { color: #888; font-size: 0.82rem; margin-top: 2px; }

/* ---- Admin Cards ---- */
.admin-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.admin-card .card-header-custom {
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.table-custom th {
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.table-custom td {
    font-size: 0.86rem;
    vertical-align: middle;
}

/* ---- Admin Responsive ---- */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,0.3);
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 16px;
    }
    .sidebar-toggle-btn { display: flex; }
    .sidebar-close-btn  { display: flex; }
}

@media (max-width: 575px) {
    .admin-topbar { padding: 10px 14px; border-radius: 10px; }
    .topbar-title { font-size: 0.92rem; }
    .stat-card    { padding: 16px; }
    .stat-number  { font-size: 1.6rem; }
    .admin-card   { padding: 14px; }
    .online-badge { display: none; }
}

/* Bootstrap helper classes used in admin */
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem  !important; }
.mt-3 { margin-top: 1rem      !important; }
.mb-0 { margin-bottom: 0      !important; }
.text-primary { color: var(--primary)   !important; }
.text-success { color: var(--secondary) !important; }
.text-warning { color: #f39c12          !important; }
.text-danger  { color: var(--accent)    !important; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { display: none; }
    .diseases-grid { grid-template-columns: repeat(4, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .chatbot-wrapper { grid-template-columns: 1fr; }
    .chat-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
    .sidebar-btns { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
    .diseases-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        background: #0d4d8a;
        flex-direction: column;
        padding: 16px 20px 20px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-link-item, .nav-btn-admin {
        display: flex;
        padding: 10px 14px;
        font-size: 0.92rem;
        border-radius: 10px;
        width: 100%;
    }
    .mobile-menu-btn { display: flex; }

    .hero-section { padding: calc(var(--navbar-h) + 36px) 0 40px; }
    .hero-title { font-size: 1.85rem; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .btn-hero-primary, .btn-hero-secondary { justify-content: center; width: 100%; max-width: 320px; }
    .hero-stats-row { gap: 0; }
    .hero-stat { padding: 0 12px; }
    .hero-stat-num { font-size: 1.2rem; }

    .section-title { font-size: 1.6rem; }

    .diseases-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 20px; }
    .college-card { flex-direction: column; text-align: center; }

    .chat-messages { height: 360px; }
    .chatbot-wrapper { grid-template-columns: 1fr; }
    .chat-sidebar { display: none; }

    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }


}
