/* Variables */
:root {
    --primary: #1A6B9A;
    --secondary: #1A6B9A;
    --dark: #0D2137;
    --light: #E8F4FD;
    --gray: #64748B;
    --light-gray: #F8FAFC;
    --border: #CBD5E1;
    --white: #ffffff;
    --red: #DC2626;
    --red-light: #FEE2E2;
    --green: #1A6B9A;
    --green-light: #D1FAE5;
    --yellow-light: #FEF9C3;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
} 

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* Navbar */
.navbar {
    background: var(--primary);
    padding: 0 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar-brand {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand span { font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    transition: all 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-btn {
    color: var(--white) !important;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 8px !important;
    padding: 6px 16px !important;
}
.nav-btn:hover { background: rgba(255,255,255,0.2) !important; border-color: var(--white) !important; }

/* Mobile navbar toggle */
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; }

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 24px 20px;
    margin-top: 60px;
    font-size: 0.88rem;
}
footer p:first-child { font-weight: 700; margin-bottom: 4px; }
footer p:last-child { opacity: 0.75; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { opacity: 0.9; }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-primary:hover { background: var(--light); }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { opacity: 0.9; }
.btn-full { width: 100%; padding: 13px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-header {
    padding: 14px 20px;
    background: var(--light-gray);
    border-bottom: 2px solid var(--light);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body { padding: 20px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,154,0.12);
}
.form-control.is-invalid { border-color: var(--red); }
.form-control::placeholder { color: #9CA3AF; }
.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group-btn {
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--light-gray);
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.input-group-btn:hover { background: var(--border); }
.error-msg {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.alert-error {
    background: var(--red-light);
    border: 1px solid #FECACA;
    border-left: 4px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--red);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Landing Page */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 90px 40px 110px;
    text-align: center;
    clip-path: ellipse(100% 88% at 50% 12%);
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--light);
    padding: 24px 40px;
    text-align: center;
    gap: 10px;
}
.stat-item h2 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-item p { font-size: 0.82rem; color: var(--gray); margin-top: 2px; }

.section { padding: 60px 40px; }
.section-title { text-align: center; font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--gray); margin-bottom: 40px; font-size: 0.95rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
    width: 64px; height: 64px;
    background: var(--light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--primary);
} 
.service-card h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.83rem; color: var(--gray); }

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.doctor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.doctor-card:hover { transform: translateY(-5px); }
.doctor-avatar {
    width: 72px; height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.8rem;
    color: var(--white);
}
.doctor-card h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.doctor-card .spec { color: var(--primary); font-size: 0.85rem; margin-bottom: 8px; }
.doctor-card p { font-size: 0.82rem; color: var(--gray); }

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 60px 40px;
}
.cta-section h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; }
.cta-section p { opacity: 0.9; margin-bottom: 28px; }

.bg-light { background: var(--light-gray); }

/*  AUTH PAGES (LOGIN / REGISTER) */
.auth-section {
    min-height: calc(100vh - 56px - 100px);
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}
.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
.auth-card.wide { max-width: 520px; }
.auth-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}
.auth-title { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--gray); font-size: 0.9rem; margin-bottom: 28px; }
.auth-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.auth-link { text-align: center; font-size: 0.88rem; color: var(--gray); margin-top: 16px; }
.auth-link a { color: var(--primary); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* DASHBOARD */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 32px 40px;
}
.dashboard-header * {
    color: white !important;
    opacity: 0.7 !important;
    margin-bottom: 4px; 
}

.dashboard-container { padding: 28px 40px; max-width: 1100px; margin: 0 auto; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
}
.stat-card h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.stat-card p { font-size: 0.78rem; color: var(--gray); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
}

.appt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.appt-item:hover { background: var(--light-gray); }
.appt-item:last-child { border-bottom: none; }
.appt-info h6 { font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; }
.appt-info small { font-size: 0.8rem; color: var(--gray); }

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-confirmed { background: var(--green-light); color: var(--green); }
.badge-pending { background: var(--yellow-light); color: #92400E; }
.badge-cancelled { background: var(--red-light); color: var(--red); }
.badge-completed { background: var(--light); color: var(--primary); }

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #FFF9F0;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid #FED7AA;
}
.bill-item h6 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.bill-item small { font-size: 0.78rem; color: var(--gray); }
.badge-unpaid { background: #FEF3C7; color: #D97706; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

.quick-actions { display: grid; gap: 10px; padding: 20px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--gray); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 16px; }

    /* ABOUT PAGE */

.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 70px 40px;
}
.about-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.about-hero p { opacity: 0.9; font-size: 1rem; }

.mission-section {
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.mission-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.mission-section p { color: var(--gray); margin-bottom: 12px; font-size: 0.95rem; }

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.value-box {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.value-icon {
    width: 52px; 
    height: 52px;
    background: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
    color: var(--primary);
    box-shadow: var(--shadow);
}
.value-box h6 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.value-box p { font-size: 0.8rem; color: var(--gray); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.contact-item .contact-icon { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.contact-item h6 { font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.contact-item p { color: var(--gray); font-size: 0.85rem; }

/* UTILITIES */
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.link-primary { color: var(--primary); font-weight: 600; }
.link-primary:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 768px){
.navbar { padding: 0 20px; }
.nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--primary); padding: 16px; gap: 4px; }
.nav-links.open { display: flex; }
.nav-toggle { display: block; }

.hero { padding: 60px 20px 80px; clip-path: none; }
.hero h1 { font-size: 1.9rem; }
.hero-btns { flex-direction: column; align-items: center; }

.stats-row { grid-template-columns: repeat(2, 1fr); }
.services-grid { grid-template-columns: 1fr; }
.doctors-grid { grid-template-columns: 1fr; }
.section { padding: 40px 20px; }

.auth-card { padding: 28px 20px; }
.form-row { grid-template-columns: 1fr; }

.dashboard-header { padding: 24px 20px; }
.dashboard-container { padding: 20px; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.dashboard-grid { grid-template-columns: 1fr; }

.mission-section { grid-template-columns: 1fr; padding: 40px 20px; }
.contact-grid { grid-template-columns: 1fr; }
.values-grid { grid-template-columns: 1fr 1fr; }

.cta-section { padding: 40px 20px; }
footer { margin-top: 40px; }
}

@media (max-width: 480px){
.stats-grid { grid-template-columns: 1fr 1fr; }
.hero h1 { font-size: 1.6rem; }
}

/* FORGOT PASSWORD / RESET */
.code-input {
    font-size: 1.8rem;
    letter-spacing: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    width: 100%;
    background: var(--light);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,154,0.15);
    background: var(--white);
}
.auth-icon-green { background: linear-gradient(135deg, #16A34A, #15803D); }
.auth-icon-orange { background: linear-gradient(135deg, #D97706, #B45309); }
.alert-success {
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    border-left: 4px solid #16A34A;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #065F46;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.strength-wrapper { margin-bottom: 16px; }
.strength-bar-bg {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.strength-bar { height: 100%; width: 0%; border-radius: 3px; transition: width 0.3s, background 0.3s; }
.strength-text { font-size: 0.78rem; color: var(--gray); }
.resend-link { text-align: center; font-size: 0.85rem; color: var(--gray); margin-top: 12px; }
.resend-link a { color: var(--primary); font-weight: 600; }
.forgot-link { text-align: right; margin-top: 6px; margin-bottom: 12px; }
.forgot-link a { font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.step {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    border: 2px solid var(--border);
    color: var(--gray); background: var(--white);
}
.step.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.step.done { background: #16A34A; color: var(--white); border-color: #16A34A; }
.step-line { flex: 1; height: 2px; background: var(--border); margin-top: 15px; max-width: 40px; }
.step-line.done { background: #16A34A; }
.timer { text-align: center; font-size: 0.85rem; color: var(--gray); margin-top: 10px; }
.timer span { color: var(--primary); font-weight: 700; }
.timer.expired span { color: var(--red); }


/* agent_patient_profile  */
.patient-header {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    padding: 24px 32px;
    color: white;
}

.patient-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-header__info h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
}

.patient-header__info p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

/* Back Button */
.btn-back {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Layout Grid  */
.patient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.patient-grid__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Icon Colors */
.icon-blue { color: #1A6B9A; margin-right: 8px; }
.icon-gold { color: #D97706; margin-right: 8px; }


/* Bill Button */
.btn-bill {
    background: #D97706;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-bill:hover { background: #B45309; }

/* Data Tables */
.table-wrapper { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead tr {
    background: #F8FAFC;
    border-bottom: 2px solid #E2E8F0;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    color: #64748B;
    font-weight: 600;
}

.data-table tbody tr {
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s;
}

.data-table tbody tr:hover { background: #F8FAFC; }

.data-table td {
    padding: 12px 16px;
    color: #1E293B;
}

.data-table .amount { font-weight: 700; }
.table-empty { text-align: center; color: #94A3B8; padding: 20px; }

/* Select inside table */
.select-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
    width: auto;
}

/* Mark Paid Button */
.btn-paid {
    background: #D1FAE5;
    color: #16A34A;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-paid:hover { background: #A7F3D0; }
.paid-label { color: #16A34A; font-size: 0.85rem; font-weight: 600; }

/* Text Helpers */
.text-muted { color: #64748B; }
.text-light { color: #94A3B8; }

/* Responsive */
@media (max-width: 768px){
.patient-grid { grid-template-columns: 1fr; }
.patient-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
}

/* agent_login.css */
.auth-icon {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.6rem;
}

.btn-agent {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    border: none;
}

.btn-agent:hover {
    opacity: 0.9;
}

.auth-link--mt {
    margin-top: 8px;
}

/*  agent_register.css */
/* agent_dashboard.css */

.dashboard-header {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
}

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

.agent-id-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-icon-blue {
    background: #E8F4FD;
}

.stat-icon-blue i {
    color: #1A6B9A;
}

.stat-icon-green {
    background: #D1FAE5;
}

.stat-icon-green i {
    color: #16A34A;
}

.stat-icon-yellow {
    background: #FEF9C3;
}

.stat-icon-yellow i {
    color: #92400E;
}

.quick-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.icon-green {
    color: #16A34A;
    margin-right: 8px;
}

.patient-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.patient-item {
    cursor: pointer;
}

.patient-email {
    color: #64748B;
}

.patient-phone {
    color: #94A3B8;
}

.chevron-icon {
    color: #1A6B9A;
    font-size: 1.2rem;
}

.appt-doctor {
    color: #64748B;
}

.appt-datetime {
    color: #94A3B8;
}

.doctor-specialization {
    color: #64748B;
}

.unread-count-badge {
    background: #DC2626;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 6px;
}

.msg-sender {
    color: #64748B;
}

.msg-date {
    color: #94A3B8;
}
/* add_patient.css */

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.password-hint {
    color: #64748B;
    font-size: 0.8rem;
}

/* AGENT STYLES */
/* Agent Navbar */
.navbar-agent { background: var(--dark) !important; }

/* Agent Badge */
.agent-badge {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 10px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Agent Header */
.agent-header {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    color: white;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.agent-header h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 4px; }
.agent-header p { opacity: 0.8; font-size: 0.92rem; }

/* Patient Row in Agent Dashboard */
.patient-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    cursor: pointer;
}
.patient-row:hover { background: var(--light-gray); }
.patient-row:last-child { border-bottom: none; }
.patient-row .arrow { color: var(--primary); font-size: 1.2rem; }

/* Agent Table */
.agent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.agent-table thead tr {
    background: #F8FAFC;
    border-bottom: 2px solid #E2E8F0;
}
.agent-table th {
    padding: 12px 16px;
    text-align: left;
    color: var(--gray);
    font-weight: 600;
}
.agent-table td { padding: 12px 16px; border-bottom: 1px solid #F1F5F9; }
.agent-table tr:hover td { background: var(--light-gray); }

/* Status Select in Table */
.status-select {
    padding: 4px 8px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    outline: none;
}

/* Mark Paid Button */
.btn-paid {
    background: var(--green-light);
    color: var(--green);
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-paid:hover { opacity: 0.85; }

/* Agent Login Card */
.auth-icon-dark {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
}

/* Patient Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Unread Badge */
.unread-badge {
    background: #DC2626;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Responsive Agent */
@media (max-width: 768px){
.agent-header { padding: 20px; flex-direction: column; gap: 12px; align-items: flex-start; }
.profile-grid { grid-template-columns: 1fr; }
.agent-table { font-size: 0.78rem; }
.agent-table th, .agent-table td { padding: 8px; }
}


/* AGENT SPECIFIC CLASSES */
.agent-id-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.logout-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.logout-btn:hover { background: rgba(255,255,255,0.25); }

.btn-agent {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}

.stat-icon-blue {
    background: #E8F4FD;
    color: #1A6B9A;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
}
.stat-icon-green {
    background: #D1FAE5;
    color: #16A34A;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
}
.stat-icon-yellow {
    background: #FEF9C3;
    color: #92400E;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
}

/* Patient Profile Header */
.patient-header {
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    color: white;
    padding: 32px 40px;
}

.patient-header__info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.patient-header__info p { opacity: 0.8; font-size: 0.88rem; }

/* Patient Profile Grid */
.patient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Back Button */
.btn-back {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    text-decoration: none;
}
.btn-back:hover { background: rgba(255,255,255,0.25); }

/* Icon Colors */

.icon-yellow { color: #D97706; margin-right: 8px; }
.icon-red { color: #DC2626; margin-right: 8px; }

/* Form Wrapper */

/* Agent Table */
.agent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    overflow-x: auto;
}

/* Status Select */
/* Mark Paid */
/* Unread Badge */
.unread-badge {
    background: #DC2626;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.72rem;
    margin-left: 6px;
}

/* Responsive */
@media (max-width: 768px){
.patient-grid { grid-template-columns: 1fr; }
.patient-header { padding: 20px; }
.patient-header__inner { flex-direction: column; gap: 12px; align-items: flex-start; }
.header-flex-row { flex-direction: column; gap: 12px; align-items: flex-start; }
.agent-table { font-size: 0.78rem; }
.agent-table th, .agent-table td { padding: 8px; }
.form-wrapper { padding: 0 10px; }
}

/* ===== MODALS ===== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 540px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #64748B;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #1a1f2e;
}

.modal-title {
    margin-bottom: 20px;
    color: #0D2137;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title i {
    color: #1A6B9A;
}

/* ===== TIME SLOTS ===== */

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.slots-placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
    grid-column: 1 / -1;
    margin: 0;
}

.slot-btn {
    padding: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1f2e;
    transition: all 0.15s ease;
}

.slot-btn:hover {
    border-color: #1A6B9A;
    color: #1A6B9A;
}

.slot-btn.selected {
    background: #1A6B9A;
    border-color: #1A6B9A;
    color: #ffffff;
}

.slot-error {
    color: #e05c7a;
    font-size: 0.85rem;
    grid-column: 1 / -1;
    margin: 0;
}

/* CLICKABLE STAT CARD  */

.stat-clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 107, 154, 0.15);
}


/* ALERT  */

.alert-error {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}


/*  BUTTONS */

.btn-sm-primary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #1A6B9A;
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-sm-primary:hover {
    background: #155a82;
    color: white;
}

.btn-sm-danger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-sm-danger:hover {
    background: #fca5a5;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s;
}

.btn-back:hover {
    background: #e2e8f0;
}

/*  TABS  */

.tab-bar {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    background: none;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn.active {
    color: #1A6B9A;
    border-bottom-color: #1A6B9A;
}

.tab-btn:hover {
    color: #1A6B9A;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* PROFILE PIC  */

.profile-pic-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.profile-pic-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VITALS  */

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.vital-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.vital-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}

.vital-card .form-control {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A6B9A;
    padding: 6px;
}

/* ===== LAB ITEMS ===== */

.lab-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.lab-item:last-child {
    border-bottom: none;
}

.lab-badge-normal {
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lab-badge-abnormal {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lab-badge-pending {
    background: #fef9c3;
    color: #ca8a04;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== SEARCH INLINE ===== */

.search-inline {
    width: 200px !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px){
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .search-inline {
        width: 140px !important;
    }

    .vitals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-box {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--w-border);
    border-radius: 8px;
    margin: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.store-badge:hover {
    background: var(--w-card-bg);
    transform: scale(1.05);
}
.sidebar-toggle {
    position: fixed;
    top: 108px;
    left: 0;
    z-index: 200;
    background: var(--w-header-bg);
    color: #fff;
    border: none;
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.1rem;
}

.side-sidebar {
    position: fixed;
    top: 108px;
    left: -320px;
    width: 300px;
    height: calc(100% - 108px);
    background: var(--w-bg);
    color: var(--w-text);
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
}
.side-sidebar.open { left: 0; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}
.sidebar-overlay.show { display: block; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--w-border);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--w-text);
}

.sidebar-section { margin-bottom: 20px; }
.sidebar-section h4 {
    font-size: 0.85rem;
    color: var(--w-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.sidebar-section a, .sidebar-section p {
    display: block;
    color: var(--w-text);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.9rem;
}
.sidebar-section a:hover { color: #1A6B9A; }

.emergency-box {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    padding: 12px;
}
.emergency-warning {
    color: #B91C1C;
    font-size: 0.85rem;
    margin-top: 8px;
}
.payment-result {
    text-align: center;
    padding: 60px 20px;
}
.payment-result.success i { color: #16A34A; font-size: 3rem; }
.payment-result.cancel i { color: #DC2626; font-size: 3rem; }
.payment-result h2 { margin: 16px 0; }
.clinic-map {
    margin: 20px 0;
}
.clinic-map iframe {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* widgets.css
   Language switcher + Dark/Light mode + Live world clock styles  */

/* ===== Theme variables ===== */
:root {
    --w-bg: #ffffff;
    --w-text: #0D2137;
    --w-header-bg: linear-gradient(135deg, #0D2137, #1A6B9A);
    --w-card-bg: #F8FAFC;
    --w-border: #E2E8F0;
    --w-muted: #64748B;
}

body.dark-mode {
    --w-bg: #0B1220;
    --w-text: #E2E8F0;
    --w-header-bg: linear-gradient(135deg, #050B14, #0F2E45);
    --w-card-bg: #111A2B;
    --w-border: #1E293B;
    --w-muted: #94A3B8;
}

body {
    background: var(--w-bg);
    color: var(--w-text);
    transition: background 0.25s ease, color 0.25s ease;
}

/* ===== Widgets bar ===== */
.widgets-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 10000;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 16px;
    background: var(--w-card-bg);
    border-bottom: 1px solid var(--w-border);
}

/* ===== Language switcher ===== */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--w-bg);
    border: 1px solid var(--w-border);
    color: var(--w-text);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--w-bg);
    border: 1px solid var(--w-border);
    border-radius: 10px;
    overflow: hidden;
    min-width: 110px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--w-text);
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--w-card-bg);
}

.lang-powered {
    font-size: 0.7rem;
    color: var(--w-muted);
    text-align: center;
    padding: 6px 0;
    border-top: 1px solid var(--w-border);
}

/* Google Translate auto-injected element: keep hidden, we use our own UI */
#google_translate_element {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Hide Google's auto top banner/iframe so layout doesn't shift */
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate {
    display: none !important;
}
body {
    top: 0 !important;
}

/* ===== Dark/Light mode toggle ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--w-bg);
    border: 1px solid var(--w-border);
    color: var(--w-text);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.theme-toggle i {
    font-size: 1rem;
}

/* ===== Live world clock ===== */
.clock-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--w-bg);
    border: 1px solid var(--w-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.clock-country-select {
    background: transparent;
    border: none;
    color: var(--w-text);
    font-size: 0.85rem;
    cursor: pointer;
}

.clock-time {
    font-weight: 600;
    min-width: 78px;
    text-align: center;
}

.clock-date {
    color: var(--w-muted);
}
.accessibility-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1A6B9A;
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 500;
}

.accessibility-toggle-bar {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #1a5276;
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
}

.accessibility-panel {
    display: none;
    position: fixed;
    bottom: 86px;
    left: 24px;
    width: 240px;
    background: var(--w-bg);
    color: var(--w-text);
    border: 1px solid var(--w-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 500;
}
.accessibility-panel.open { display: block; }

.access-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.85rem;
}
.access-btns button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--w-border);
    background: var(--w-card-bg);
    color: var(--w-text);
    border-radius: 6px;
    cursor: pointer;
    margin-left: 4px;
}

.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #ccc; border-radius: 22px; transition: 0.2s;
}
.slider::before {
    content: ""; position: absolute; height: 16px; width: 16px;
    left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s;
}
input:checked + .slider { background: #1A6B9A; }
input:checked + .slider::before { transform: translateX(18px); }

.access-reset {
    width: 100%;
    padding: 8px;
    background: var(--w-card-bg);
    border: 1px solid var(--w-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--w-text);
}

/* High Contrast Mode */
body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}
body.high-contrast a { color: #FFD700 !important; }
body.high-contrast .stat-box,
body.high-contrast .stat-card {
    background: #111 !important;
    border-color: #fff !important;
}

body.underline-links a { text-decoration: underline !important; }

/*    patient_management.css
   MediBook Agent â€” Add Patient + Patient Detail Page */

/* ---------- Add Patient: Password Hint ---------- */
.password-hint {
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
}

/* ---------- Patient Detail: Header ---------- */
.header-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-info h2 { margin: 0; }
.header-info p  { margin: 0; }

/* ---------- Section Subtitles ---------- */
.section-subtitle {
    color: #0D2137;
    margin: 20px 0 12px;
}

.section-icon { color: #1A6B9A; }

.section-subtitle-sm { margin-bottom: 12px; }

/* ---------- Card ---------- */
.card-mt   { margin-top: 16px; }

/* ---------- Utility ---------- */

.inline-form { display: inline; }

/* ---------- Lab Items ---------- */
.lab-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lab-meta {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 4px;
}

.lab-date  { color: #94a3b8; font-size: 0.8rem; }
.lab-notes { color: #64748b; font-size: 0.85rem; }

.lab-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---------- Appointment / Bill Items ---------- */
.appt-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.appt-notes { color: #64748b; }

.status-select {
    width: 120px;
    padding: 4px 8px;
    font-size: 0.82rem;
}

/* ---------- Messages ---------- */
.msg-preview {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 4px;
}

.clinic-map-frame {
    border: 0;
    border-radius: 12px;
}

/* appointments.css ” MediBook Appointments Page */

/* ---------- Color Variables ---------- */
:root {
    --color-primary:   #1A6B9A;
    --color-muted:     #64748B;
    --color-danger:    #DC2626;
    --color-danger-bg: #FEE2E2;
    --color-error:     #DC2626;
    --color-border:    #E2E8F0;
    --color-bg:        #F8FAFC;
    --radius:          8px;
}

/* ---------- Utility ---------- */
.icon-primary { color: var(--color-primary); margin-right: 8px; }
.icon-muted   { color: var(--color-muted);   margin-right: 8px; }
.text-muted   { color: var(--color-muted); }
.mb-2         { margin-bottom: 1rem; }

/* ---------- Dashboard Layout ---------- */
.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
}

.dashboard-header p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.dashboard-container {
    padding: 0 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px){
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Card ---------- */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.95rem;
    color: #1E293B;
    background: var(--color-bg);
}

.card-body {
    padding: 1.25rem;
}

/* ---------- Form ---------- */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: #1E293B;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 154, 0.12);
}

.form-control.is-invalid {
    border-color: var(--color-error);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.error-msg {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--color-error);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.98); }

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

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

/* ---------- Appointment Items ---------- */
.appt-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.appt-info h6 {
    margin: 0 0 3px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
}

.appt-info small {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.appt-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending    { background: #FEF9C3; color: #92400E; }
.badge-confirmed  { background: #DCFCE7; color: #166534; }
.badge-cancelled  { background: #FEE2E2; color: #991B1B; }
.badge-completed  { background: #E0E7FF; color: #3730A3; }

/* ---------- Empty State ---------- */
.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--color-muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
}

.patients-header {
    margin-bottom: 1.5rem;
}
.patients-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
}
.patients-header p {
    color: #64748B;
    font-size: 0.9rem;
}
.patients-container {
    padding: 0 1rem;
}
.card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}
.card-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1E293B;
    background: #F8FAFC;
}
.patients-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.patient-item {
        border-bottom: 1px solid #E2E8F0;
}
.patient-item:last-child {
    border-bottom: none;
}
.patient-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.patient-link:hover {
    background: #F8FAFC;
}
.patient-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #DBEAFE;
    color: #1A6B9A;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.patient-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.patient-info strong {
    font-size: 0.9rem;
    color: #1E293B;
}
.patient-info small {
    font-size: 0.78rem;
    color: #64748B;
}
.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748B;
}
    
    

/* health.css ” MediBook Health Records Page */
/* ---------- Variables ---------- */
:root {
    --color-primary:  #1A6B9A;
    --color-muted:    #64748B;
    --color-text:     #374151;
    --color-heading:  #1E293B;
    --color-border:   #E2E8F0;
    --color-bg:       #F8FAFC;
    --radius:         8px;
}

/* ---------- Utility ---------- */

.section-mt {
    margin-top: 20px;
}

/* ---------- Dashboard Header ---------- */

.dashboard-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 4px;
}

/* ---------- Health Grid ---------- */
.health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px){
    .health-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Card ---------- */

.card-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-heading);
    background: var(--color-bg);
}

/* ---------- Record Text ---------- */
.record-text {
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Patient Info Grid ---------- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px){
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-muted);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-value {
    font-size: 0.95rem;
    color: var(--color-heading);
    margin: 0;
}

/* ---------- Empty State ---------- */
.empty-state {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--color-muted);
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.empty-state p {
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- Footer Note ---------- */
.health-footer {
    margin-top: 16px;
    text-align: center;
}

.health-footer p {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.link-primary {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
/* login.css ” MediBook Login Page */
/* ---------- Variables ---------- */
:root {
    --color-primary:  #1A6B9A;
    --color-muted:    #64748B;
    --color-error:    #DC2626;
    --color-border:   #E2E8F0;
    --color-bg:       #F8FAFC;
    --color-heading:  #1E293B;
    --radius:         8px;
}

/* ---------- Auth Section ---------- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 2rem 1rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- Auth Header ---------- */
.auth-icon {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.auth-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 4px;
}

.auth-sub {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

/* ---------- Alert ---------- */
.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Form ---------- */

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--color-heading);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

/* ---------- Password Input Group ---------- */
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 154, 0.12);
}

.input-group .form-control {
    border: none;
    box-shadow: none;
    border-radius: 0;
    flex: 1;
}

.input-group .form-control:focus {
    box-shadow: none;
}

.input-group-btn {
    background: none;
    border: none;
    padding: 0 0.75rem;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.input-group-btn:hover {
    color: var(--color-primary);
}

/* ---------- Forgot Link ---------- */
.forgot-link {
    text-align: right;
    margin-bottom: 1.25rem;
}

.forgot-link a {
    font-size: 0.82rem;
    color: var(--color-primary);
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* ---------- Button ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease;
}

.btn-full {
    width: 100%;
}

/* ---------- Divider & Links ---------- */
.auth-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.25rem 0;
}

.auth-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.auth-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* messages.css ” MediBook Messages Page */
/* ---------- Variables ---------- */
:root {
    --color-primary:  #1A6B9A;
    --color-muted:    #64748B;
    --color-light:    #94A3B8;
    --color-error:    #DC2626;
    --color-border:   #E2E8F0;
    --color-bg:       #F8FAFC;
    --color-heading:  #1E293B;
    --radius:         8px;
}

/* ---------- Utility ---------- */

.text-light   { color: var(--color-light); }

/* ---------- Dashboard Header ---------- */

/* ---------- Alert Info ---------- */
.alert-info {
    background: #FEF9C3;
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #92400E;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Grid ---------- */
/* ---------- Card ---------- */
/* ---------- Form ---------- */

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--color-heading);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    resize: vertical;
}

/* ---------- Button ---------- */
/* ---------- Message Items ---------- */
.appt-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
}

.appt-info h6 {
    margin: 0 0 3px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-heading);
}

.appt-info small {
    font-size: 0.78rem;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ---------- Empty State ---------- */

.empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

.appointments-header {
    margin-bottom: 1.5rem;
}
.appointments-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
}
.appointments-header p {
    color: #64748B;
    font-size: 0.9rem;
}
.appointments-container {
    padding: 0 1rem;
}

.icon-primary {
    color: #1A6B9A;
    margin-right: 8px;
}
.appointments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.appointment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
}
.appointment-item:last-child {
    border-bottom: none;
}
.appt-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #DBEAFE;
    color: #1A6B9A;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.appt-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.appt-info strong {
    font-size: 0.9rem;
    color: #1E293B;
}
.appt-info small {
    font-size: 0.78rem;
    color: #64748B;
}

/* billing.css ” MediBook Billing Page */
:root {
    --color-primary:  #1A6B9A;
    --color-muted:    #64748B;
    --color-border:   #E2E8F0;
    --color-bg:       #F8FAFC;
    --color-heading:  #1E293B;
    --radius:         8px;
}

.billing-header {
    margin-bottom: 1.5rem;
}
.billing-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 4px;
}
.billing-header p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.billing-container {
    padding: 0 1rem;
}

.bills-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.bill-item:last-child {
    border-bottom: none;
}

.bill-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #DBEAFE;
    color: var(--color-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bill-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.bill-info strong {
    font-size: 0.95rem;
    color: var(--color-heading);
}
.bill-info small {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.bill-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-paid      { background: #DCFCE7; color: #166534; }

.badge-overdue   { background: #FEE2E2; color: #991B1B; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

/*   payment_result.css ” MediBook Payment Result */
:root {
    --color-border:  #E2E8F0;
    --color-bg:      #F8FAFC;
    --color-heading: #1E293B;
    --color-muted:   #64748B;
    --radius:        8px;
}

.result-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.result-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.result-cancel .result-icon { color: #DC2626; }
.result-success .result-icon { color: #16A34A; }

.result-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.5rem;
}

.result-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
}

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #374151;
    line-height: 1.7;
}

.legal-page h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
}

.legal-page p:first-of-type {
    color: #64748B;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1A6B9A;
    margin: 1.5rem 0 6px;
}

.legal-page p {
    font-size: 0.9rem;
}

/* reset_code.css ” MediBook Reset Code Page */
/* ---------- Steps ---------- */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step.active {
    background: #1A6B9A;
    color: #fff;
}

.step.done {
    background: #16A34A;
    color: #fff;
    font-size: 0.7rem;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #E2E8F0;
}

/* ---------- Auth Icon Green ---------- */
.auth-icon-green {
    color: #16A34A;
}

/* ---------- Code Input ---------- */
.code-label {
    text-align: center;
    display: block;
}

.code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

/* ---------- Timer ---------- */
.timer {
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 8px;
}

.timer span {
    font-weight: 600;
    color: #DC2626;
}

/* ---------- Resend Link ---------- */
.resend-link {
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
}

.resend-link a {
    color: #1A6B9A;
    text-decoration: none;
    font-weight: 500;
}

.resend-link a:hover {
    text-decoration: underline;
}

.resend-link-mt {
    margin-top: 8px;
}

/* ---------- Utility ---------- */
.btn-mt {
    margin-top: 16px;
}

/* reset_password.css â€” additions only */

.auth-icon-orange {
    color: #EA580C;
}

.strength-wrapper {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar-bg {
    flex: 1;
    height: 5px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 50px;
    color: #64748B;
}

/* services.css - MediBook Services Page */
/* ===== Hero ===== */
.about-hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    background: linear-gradient(135deg, #EFF6FF, #F0F9FF);
}

.about-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.about-hero p {
    font-size: 1rem;
    color: #64748B;
}

/* ===== Section ===== */
.section {
    padding: 3rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
}

.section-sub {
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 2rem;
}

.bg-light {
    background: #F8FAFC;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px){
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px){
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 1.6rem;
    color: #1A6B9A;
    margin-bottom: 0.75rem;
}

.service-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 6px;
}

.service-card p {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

/* ===== How It Works ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 600px){
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary, #1A6B9A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

.step-item h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1E293B;
}

.step-item p {
    font-size: 0.88rem;
    color: #64748B;
}

/* ===== CTA ===== */
.cta-section {
    padding: 3rem 1.5rem;
    text-align: center;
    background: #1A6B9A;
    color: #fff;
}

.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-section p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #fff;
    color: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    background: #fff;
    color: #1A6B9A;
}

/* ===== AI ASSISTANT PANEL ===== */
.ai-chat-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,107,154,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ai-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(26,107,154,0.6);
}

/* Panel */
.ai-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    z-index: 9998;
    width: 320px;
    max-height: 480px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.ai-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Header */
.ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0D2137, #1A6B9A);
    color: #fff;
    flex-shrink: 0;
}
.ai-panel-header h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
}
.ai-panel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.ai-panel-close:hover { color: #fff; }

/* Chat section */
.ai-chat-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Messages */
.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    max-height: 340px;
}

.ai-msg-user {
    align-self: flex-end;
    background: #1A6B9A;
    color: #fff;
    padding: 7px 12px;
    border-radius: 14px 14px 3px 14px;
    max-width: 82%;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}
.ai-msg-bot {
    align-self: flex-start;
    background: #F1F5F9;
    color: #1E293B;
    padding: 7px 12px;
    border-radius: 14px 14px 14px 3px;
    max-width: 82%;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}
.ai-msg-typing {
    align-self: flex-start;
    color: #94A3B8;
    font-style: italic;
    font-size: 0.82rem;
    padding: 4px 0;
}

/* Input row */
.ai-input-row {
    display: flex;
    gap: 7px;
    padding: 10px 12px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
    flex-shrink: 0;
}
.ai-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
    background: #fff;
    color: #1E293B;
    transition: border-color 0.15s;
}
.ai-input:focus { border-color: #1A6B9A; }

.ai-send-btn {
    padding: 8px 14px;
    background: #1A6B9A;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.ai-send-btn:hover { opacity: 0.88; }
.ai-send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Accessibility toggle */
.accessibility-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--w-bg);
    border: 1px solid var(--w-border);
    color: var(--w-text);
    font-size: 1rem;
    cursor: pointer;
}

/* Dark mode */
body.dark-mode .ai-panel {
    background: #111A2B;
    border-color: #1E293B;
}
body.dark-mode .ai-msg-bot {
    background: #1E293B;
    color: #E2E8F0;
}
body.dark-mode .ai-input-row {
    background: #0B1220;
    border-top-color: #1E293B;
}
body.dark-mode .ai-input {
    background: #0B1220;
    border-color: #1E293B;
    color: #E2E8F0;
}

/* Mobile */
@media (max-width: 480px) {
    .ai-panel {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 88px;
    }
    .ai-chat-toggle {
        right: 16px;
        bottom: 20px;
    }
}

/* Chat */
.ai-chat-section { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.ai-messages {
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
}

.ai-msg-user {
    align-self: flex-end;
    background: #1A6B9A;
    color: #fff;
    padding: 5px 10px;
    border-radius: 12px 12px 2px 12px;
    max-width: 85%;
}
.ai-msg-bot {
    align-self: flex-start;
    background: #F1F5F9;
    color: #1E293B;
    padding: 5px 10px;
    border-radius: 12px 12px 12px 2px;
    max-width: 85%;
}

.ai-input-row {
    display: flex;
    gap: 6px;
}
.ai-input {
    flex: 1;
    padding: 0.4rem 0.65rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
}
.ai-input:focus { border-color: #1A6B9A; }

.ai-send-btn {
    padding: 0.4rem 0.65rem;
    background: #1A6B9A;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.15s;
}
.ai-send-btn:hover { opacity: 0.88; }