/* ================================================
   DOCTOR AT DOOR — app.css
   Sections:
    1  Variables
    2  Reset & Base
    3  Layout
    4  Typography & Utility
    5  AppBar
    6  Sidebar
    7  Page Header
    8  Card Primitives
    9  Stat / Dashboard Cards
   10  Hero Section
   11  Speciality Cards
   12  Doctor Cards
   13  Service Cards
   14  Badges
   15  CTA Banner
   16  Form Styles
   17  DataTable (production)
   18  Buttons
   19  User Chip
   20  Notifications
   21  Mobile Bottom Nav
   22  Floating Buttons
   23  Login
   24  Misc / Utilities
   25  Responsive
   26  Animations
   ================================================ */

/* ── 1. VARIABLES ─────────────────────────────── */
:root {
    --brand: #1A6B5A;
    --brand-dark: #0D4A3D;
    --brand-mid: #2D9B80;
    --brand-light: #E8F5F1;
    --accent: #F4793B;
    --accent-light: #FEF0E8;
    --text: #1C1C1E;
    --text2: #6B7280;
    --text3: #9CA3AF;
    --bg: #F4F6F9;
    --card: #ffffff;
    --border: #E5EBE8;
    --sidebar-bg: #1E293B;
    --sidebar-text: #CBD5E1;
    --r: 14px;
    --r-sm: 8px;
    --r-md: 10px;
    --sh-sm: 0 1px 4px rgba(0,0,0,0.07);
    --sh-md: 0 4px 16px rgba(0,0,0,0.10);
    --sh-lg: 0 8px 32px rgba(0,0,0,0.13);
}

/* ── 2. RESET & BASE ───────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body {
    margin: 0;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* ── 3. LAYOUT ────────────────────────────────── */
.main-content {
    min-height: calc(100vh - 64px);
    padding-top: 64px;
    background: var(--bg);
    animation: fadeSlide 0.35s ease;
}

/* ── 4. TYPOGRAPHY & UTILITY ───────────────────── */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

.fw-black {
    font-weight: 800 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.text-brand {
    color: var(--brand) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-muted {
    color: var(--text2) !important;
}

.text-hint {
    color: var(--text3) !important;
}

.text-danger {
    color: #DC2626 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-sm {
    font-size: 13px;
}

.text-xs {
    font-size: 12px;
}

.text-xxs {
    font-size: 11px;
}

.link-brand {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

    .link-brand:hover {
        color: var(--brand-dark);
    }

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

.section-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-mid);
    text-decoration: none;
}

    .section-link:hover {
        color: var(--brand);
    }

.bg-brand {
    background: var(--brand);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
}

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

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 10px;
}

.gap-4 {
    gap: 12px;
}

.border-top {
    border-top: 1px solid var(--border);
}

.border-bottom {
    border-bottom: 1px solid var(--border);
}

.divider-light {
    border-color: rgba(255,255,255,0.08) !important;
}

.icon-gray {
    color: #9CA3AF !important;
}

.icon-muted {
    color: #374151 !important;
}

.icon-secondary {
    color: var(--text2) !important;
}

/* ── 5. APPBAR ────────────────────────────────── */
.mud-appbar {
    box-shadow: none !important;
}

    /* Admin white appbar */
    .admin-appbar.mud-appbar,
    .mud-appbar.admin-appbar {
        background: #ffffff !important;
        color: var(--text) !important;
        border-bottom: 1px solid var(--border) !important;
    }

.admin-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
    margin-left: 4px;
}

.admin-badge {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    margin-left: 6px;
}

/* ── 6. SIDEBAR ───────────────────────────────── */
.mud-drawer {
    background: var(--sidebar-bg) !important;
}

.mud-nav-link {
    color: var(--sidebar-text) !important;
    border-radius: var(--r-sm) !important;
    margin: 2px 10px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background 0.15s, color 0.15s;
}

    .mud-nav-link:hover {
        background: #334155 !important;
        color: #fff !important;
    }

    .mud-nav-link.active {
        background: #2563EB !important;
        color: #fff !important;
    }

    .mud-nav-link .mud-icon-root {
        font-size: 19px !important;
    }

.menu-header {
    padding: 12px 16px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #64748B;
    font-weight: 700;
}

.sidebar-header {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: white;
    padding: 18px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

    .sidebar-brand span {
        color: #7FECD2;
    }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #7FECD2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #0D4A3D;
    flex-shrink: 0;
}

.sidebar-username {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

/* ── 7. PAGE HEADER ───────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.page-header-subtitle {
    font-size: 13px;
    color: var(--text2);
    margin: 3px 0 0;
}

/* ── 8. CARD PRIMITIVES ───────────────────────── */
.card {
    background: var(--card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
}

.card-body {
    padding: 20px;
}

.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

/* ── 9. STAT / DASHBOARD CARDS ────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-card {
    border-radius: var(--r);
    padding: 20px;
    color: white;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

    .dashboard-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--sh-lg);
    }

    .dashboard-card h3 {
        font-size: 30px;
        font-weight: 800;
        margin: 8px 0 0;
    }

.stat-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}

.card-icon-bg {
    position: absolute;
    right: -8px;
    top: -8px;
    opacity: 0.15;
    font-size: 70px;
    line-height: 1;
}

.card-green {
    background: linear-gradient(135deg, #16A34A, #15803D);
}

.card-blue {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.card-orange {
    background: linear-gradient(135deg, #EA580C, #C2410C);
}

.card-purple {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
}

.card-teal {
    background: linear-gradient(135deg, #0D9488, #0F766E);
}

.card-rose {
    background: linear-gradient(135deg, #E11D48, #BE123C);
}

/* ── 10. HERO SECTION ─────────────────────────── */
.hero-section {
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding: 56px 24px 80px;
    position: relative;
    overflow: hidden;
}

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 48px;
        background: var(--bg);
        clip-path: ellipse(55% 100% at 50% 100%);
    }

.hero-glass {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.7s ease;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 18px;
}

    .hero-tag span {
        font-size: 11px;
        color: rgba(255,255,255,0.95);
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
    }

.hero-tag-dot {
    width: 7px;
    height: 7px;
    background: #7FECD2;
    border-radius: 50%;
}

.hero-search {
    background: #fff;
    border-radius: var(--r);
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--sh-lg);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-stat {
    text-align: center;
    padding-right: 24px;
}

.hero-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.hero-stat-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}

/* ── 11. SPECIALITY CARDS ─────────────────────── */
.spec-card {
    background: var(--card);
    border-radius: var(--r);
    padding: 20px 12px;
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
}

    .spec-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--sh-md);
    }

.spec-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.spec-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.spec-count {
    font-size: 11px;
    color: var(--text3);
    font-weight: 600;
}

/* ── 12. DOCTOR CARDS ─────────────────────────── */
.doctor-card {
    background: var(--card);
    border-radius: var(--r) !important;
    border: 1px solid var(--border) !important;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: block;
    text-decoration: none;
}

    .doctor-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh-lg) !important;
    }

.doctor-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.doctor-card-body {
    padding: 14px;
}

.doctor-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.doctor-spec {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 10px;
}

.doctor-rating {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.doctor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doctor-placeholder {
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Horizontal scroll strip */
.doctor-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

    .doctor-scroll::-webkit-scrollbar {
        display: none;
    }

    .doctor-scroll .doctor-card {
        flex-shrink: 0;
        width: 160px;
    }

    .doctor-scroll .doctor-img {
        height: 115px;
    }

    .doctor-scroll .doctor-name {
        font-size: 12px;
    }

    .doctor-scroll .doctor-spec {
        font-size: 11px;
        margin-bottom: 6px;
    }

/* Small variant for scroll strip */
.doctor-name-sm {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-spec-sm {
    font-size: 11px;
    color: var(--text2);
    margin: 2px 0 6px;
}

.doctor-rating-sm {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}

/* ── 13. SERVICE CARDS ────────────────────────── */
.service-card {
    background: var(--card);
    border-radius: var(--r);
    padding: 22px;
    border: 1px solid var(--border);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    text-decoration: none;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--sh-md);
    }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.service-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.service-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 14px;
}

.service-cta {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── 14. BADGES ───────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-sm {
    font-size: 9px;
    padding: 2px 7px;
}

.badge-available {
    background: var(--brand-light);
    color: var(--brand);
}

.badge-busy {
    background: #F3F4F6;
    color: var(--text3);
}

.badge-confirmed {
    background: #DCFCE7;
    color: #16A34A;
}

.badge-pending {
    background: #FEF3C7;
    color: #D97706;
}

.badge-completed {
    background: #EFF6FF;
    color: #2563EB;
}

.badge-cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.badge-admin {
    background: var(--brand-light);
    color: var(--brand);
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-role {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ── 15. CTA BANNER ───────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #e05a20 100%);
    border-radius: var(--r);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: white;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cta-sub {
    font-size: 14px;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: var(--accent);
    border-radius: var(--r-md);
    padding: 12px 28px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

    .cta-btn:hover {
        opacity: 0.92;
    }

/* ── 16. FORM STYLES ──────────────────────────── */
.form-card {
    background: var(--card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--sh-sm);
}

.form-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text3);
    margin: 16px 0 10px;
}

.form-file-zone {
    border: 1.5px dashed var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    background: #FAFAFA;
    transition: border-color 0.15s, background 0.15s;
}

    .form-file-zone:hover {
        border-color: var(--brand-mid);
        background: var(--brand-light);
    }

.form-img-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

/* Login page */
.login-card {
    max-width: 400px;
    margin: 80px auto;
    padding: 24px;
}

/* MudBlazor field border radius */
.mud-input-outlined .mud-input-outlined-border {
    border-radius: var(--r-sm) !important;
}

/* ── 17. DATA TABLE (PRODUCTION) ──────────────── */
.data-table-wrapper {
    background: var(--card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--sh-sm);
}

/* Toolbar */
.data-table-toolbar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.data-table-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-table-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.data-table-count {
    font-size: 11px;
}

.data-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.data-table-search {
    min-width: 220px;
}

/* Filters row */
.data-table-filters {
    padding: 12px 16px;
    background: #F9FAFB;
    border-bottom: 1px solid var(--border);
}

/* Scroll container for wide tables */
.data-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Empty state */
.data-table-empty {
    padding: 48px 20px;
    text-align: center;
}

/* Footer / pagination */
.data-table-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #FAFAFA;
}

.data-table-pagesize {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text2);
}

.data-table-page-info {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text3);
}

.data-table-page-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
}

/* MudTable cell overrides */
.mud-table-head .mud-table-cell {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--text3) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #F9FAFB !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 10px 14px !important;
    white-space: nowrap;
}

.mud-table-body .mud-table-cell {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid #F9FAFB !important;
}

.mud-table-row:hover .mud-table-cell {
    background: #F0FDF8 !important;
}

/* Action / expander columns */
.data-table-row-actions {
    white-space: nowrap;
    width: 1%;
    padding: 4px 8px !important;
}

.data-table-expander-th {
    width: 40px !important;
    padding: 0 !important;
}

.data-table-expander-td {
    padding: 0 4px !important;
}

.data-table-actions-th {
    width: 1% !important;
    white-space: nowrap;
}

/* Expandable detail panel */
.data-table-detail-row {
    background: var(--brand-light) !important;
    padding: 0 !important;
}

.dt-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
}

.dt-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dt-detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text3);
}

.dt-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* Delete confirm overlay */
.dt-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeSlide 0.15s ease;
}

.dt-dialog {
    background: var(--card);
    border-radius: var(--r);
    padding: 28px 28px 20px;
    max-width: 340px;
    width: 90%;
    box-shadow: var(--sh-lg);
    text-align: center;
}

.dt-dialog-icon {
    margin-bottom: 12px;
}

.dt-dialog-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.dt-dialog-body {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 20px;
}

.dt-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Sort label */
.mud-table-sort-label {
    font-weight: 700 !important;
    font-size: 11px !important;
}

/* ── 18. BUTTONS ──────────────────────────────── */
.btn-brand {
    background: var(--brand) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: var(--r-sm) !important;
}

.btn-accent {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: var(--r-sm) !important;
}

.btn-outline-brand {
    border: 1.5px solid var(--brand) !important;
    color: var(--brand) !important;
    font-weight: 700 !important;
    border-radius: var(--r-sm) !important;
    background: transparent !important;
}

.btn-danger {
    background: #DC2626 !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: var(--r-sm) !important;
}

/* ── 19. USER CHIP ────────────────────────────── */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 24px;
    padding: 5px 12px 5px 6px;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.user-chip-public {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

    .user-chip-public:hover {
        background: rgba(255,255,255,0.22);
    }

.user-chip-admin {
    background: var(--brand-light);
    border-color: #C6E8DE;
}

    .user-chip-admin:hover {
        background: #D1F0E5;
    }

.user-chip-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.user-chip-name {
    font-size: 13px;
    font-weight: 700;
}

/* ── 20. NOTIFICATIONS ────────────────────────── */
.notif-dropdown {
    width: 320px;
    padding: 0;
}

.notif-header {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #F9FAFB;
    cursor: pointer;
    transition: background 0.1s;
}

    .notif-item:hover {
        background: #F9FAFB;
    }

    .notif-item.unread {
        background: #F0FDF8;
    }

        .notif-item.unread:hover {
            background: #E8F5F1;
        }

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    color: var(--text);
}

    .notif-title.unread {
        font-weight: 800;
    }

.notif-body {
    font-size: 12px;
    color: var(--text2);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 3px;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ── 21. MOBILE BOTTOM NAV ─────────────────────── */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background: var(--card);
    display: none;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.07);
    z-index: 1500;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-decoration: none;
    padding: 4px 12px;
    transition: color 0.15s, transform 0.15s;
    cursor: pointer;
    border: none;
    background: none;
}

    .nav-item .material-icons {
        font-size: 22px;
    }

    .nav-item.active {
        color: var(--brand);
    }

    .nav-item:active {
        transform: scale(0.9);
    }

.nav-fab {
    width: 48px;
    height: 48px;
    background: var(--brand);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 14px rgba(26,107,90,0.4);
}

/* ── 22. FLOATING BUTTONS ─────────────────────── */
.custom-fab {
    position: fixed;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    z-index: 2000;
    box-shadow: var(--sh-md);
    transition: transform 0.15s;
    font-size: 22px;
}

    .custom-fab:active {
        transform: scale(0.9);
    }

.call-btn {
    bottom: 90px;
    background: var(--brand);
    animation: pulseGreen 2.5s infinite;
}

.whatsapp-btn {
    bottom: 22px;
    background: #25D366;
    animation: pulseWA 2.5s infinite;
}

/* ── 23. LOGIN ────────────────────────────────── */
.login-card {
    max-width: 400px;
    margin: 80px auto;
    padding: 24px;
}

/* ── 24. MISC / UTILITIES ─────────────────────── */
.app-logo {
    height: 38px;
    width: auto;
    display: block;
}

.divider-text {
    font-size: 11px;
    color: var(--text3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.min-w-210 {
    min-width: 210px;
}

.install-popup {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: var(--card);
    border-radius: var(--r);
    padding: 14px 16px;
    box-shadow: var(--sh-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3000;
    border: 1px solid var(--border);
    font-size: 13px;
}

    .install-popup button {
        background: var(--brand);
        color: white;
        border: none;
        border-radius: var(--r-sm);
        padding: 8px 16px;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
        font-family: 'Nunito', sans-serif;
    }

.toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: var(--sh-md);
}

    .toast.success {
        background: #16A34A;
    }

    .toast.error {
        background: #DC2626;
    }

    .toast.info {
        background: #2563EB;
    }

    .toast.warning {
        background: #D97706;
    }

/* ── 25. RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }

    .main-content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    .hero-section {
        padding: 36px 16px 64px;
    }

    .cta-section {
        padding: 20px;
    }

    .custom-fab {
        display: none;
    }

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

    .hide-mobile {
        display: none !important;
    }

    /* DataTable mobile */
    .data-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .data-table-actions {
        justify-content: space-between;
    }

    .data-table-search {
        width: 100%;
        min-width: unset;
    }

    .data-table-footer {
        flex-direction: column;
        align-items: center;
    }

    .data-table-page-info {
        flex: unset;
    }

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

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }

    .custom-fab {
        display: flex;
    }

    .main-content {
        padding-bottom: 24px;
        padding-top: 77px;
    }

    .hide-desktop {
        display: none !important;
    }
}

/* ── 26. ANIMATIONS ───────────────────────────── */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(26,107,90,0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(26,107,90,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26,107,90,0);
    }
}

@keyframes pulseWA {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37,211,102,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

/* ═══════════════════════════════════════════════
   PUBLIC PAGES — added classes
   (hero fix, public sections, doctor/spec detail,
    service detail, breadcrumb, filters, reviews)
   ═══════════════════════════════════════════════ */

/* ── FIX: Hero content visibility ─────────────── */
/* The issue: MudMainContent had padding-top that ate the hero */
.hero-section {
    background: linear-gradient(150deg, #1A6B5A 0%, #0D4A3D 100%);
    padding: 72px 24px 96px;
    position: relative;
    overflow: hidden;
    /* Remove bottom clip — use wave SVG instead */
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.hero-blob-tr {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -60px;
}

.hero-blob-bl {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -40px;
}

.hero-wave-wrap {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}

.hero-wave-svg {
    height: 48px;
    width: 100%;
    display: block;
}

.hero-glass {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.7s ease;
}

.hero-heading {
    font-size: clamp(26px,5vw,48px);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
}

.text-teal {
    color: #7FECD2;
}

.hero-sub1 {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 6px;
}

.hero-sub2 {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 28px;
}

.hero-search {
    background: #fff;
    border-radius: 14px;
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.hero-search-icon {
    color: #9CA3AF;
    font-size: 20px;
}

.hero-search-field {
    flex: 1;
}

.hero-call-btn {
    background: #F4793B;
    color: white;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

    .hero-call-btn:hover {
        background: #e05a20;
    }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-stat {
    text-align: center;
    padding-right: 24px;
}

.hero-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.hero-stat-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}

/* ── Appbar logo fix ───────────────────────────── */
.app-logo {
    height: 42px;
    width: auto;
    display: block;
}

/* ── Public section layout ─────────────────────── */
.pub-section {
    padding: 40px 24px 0;
    max-width: 1280px;
    margin: 0 auto;
}

.pub-section-last {
    padding-bottom: 40px;
}

.pub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pub-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.pub-page-title-block {
    margin-bottom: 24px;
}

.pub-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
    font-family: 'Playfair Display',serif;
}

.pub-page-subtitle {
    font-size: 15px;
    color: var(--text2);
    margin: 0;
}

/* ── Breadcrumb ────────────────────────────────── */
.pub-breadcrumb {
    padding: 12px 24px 0;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
}

.pub-bread-link {
    color: var(--brand-mid);
    text-decoration: none;
    font-weight: 600;
}

    .pub-bread-link:hover {
        color: var(--brand);
    }

.pub-bread-sep {
    color: var(--text3);
}

.pub-bread-current {
    color: var(--text2);
    font-weight: 600;
}

/* ── Filters ───────────────────────────────────── */
.pub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.pub-filter-field {
    min-width: 220px;
    flex: 1;
}

.pub-filter-select {
    min-width: 160px;
}

.pub-filter-check {
    white-space: nowrap;
}

.pub-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pub-sort-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Nunito',sans-serif;
}

    .pub-sort-btn.active {
        background: var(--brand);
        color: white;
        border-color: var(--brand);
    }

    .pub-sort-btn:hover:not(.active) {
        border-color: var(--brand-mid);
        color: var(--brand);
    }

/* ── Empty state ───────────────────────────────── */
.pub-empty {
    padding: 48px 20px;
    text-align: center;
}

.pub-empty-icon {
    font-size: 48px !important;
    color: var(--text3);
    display: block;
    margin-bottom: 12px;
}

/* ── Spec card large variant ───────────────────── */
.spec-card-lg {
    padding: 24px 14px;
}

    .spec-card-lg .spec-icon {
        width: 60px;
        height: 60px;
    }

/* ── Speciality detail hero ────────────────────── */
.spec-detail-hero {
    padding: 32px 24px;
}

.spec-detail-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.spec-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    font-family: 'Playfair Display',serif;
}

.spec-detail-desc {
    font-size: 15px;
    color: var(--text2);
    margin: 0 0 12px;
    line-height: 1.6;
}

.spec-detail-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Why grid ──────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
}

.why-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px 20px;
    text-align: center;
}

.why-icon {
    font-size: 36px !important;
    color: var(--brand);
    display: block;
    margin-bottom: 12px;
}

.why-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.why-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
}

/* ── Doctor card CTA button (inside card) ──────── */
.doctor-cta-btn {
    display: block;
    background: var(--brand);
    color: white;
    text-align: center;
    padding: 9px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 10px;
}

.doctor-card-compact {
    width: 160px;
}

.doctor-img-compact {
    height: 115px;
}

/* ── Doctor profile page ───────────────────────── */
.doc-profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    position: sticky;
    top: 90px;
}

.doc-profile-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.doc-profile-body {
    padding: 20px;
}

.doc-profile-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
    font-family: 'Playfair Display',serif;
}

.doc-profile-spec {
    font-size: 14px;
    color: var(--brand-mid);
    font-weight: 700;
    margin-bottom: 4px;
}

.doc-profile-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    flex-wrap: wrap;
    gap: 6px;
}

.doc-meta-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text);
}

.doc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin: 14px 0;
}

.doc-stat-box {
    background: var(--brand-light);
    border-radius: var(--r-sm);
    padding: 10px 6px;
    text-align: center;
}

.doc-stat-val {
    font-size: 16px;
    font-weight: 800;
}

.doc-stat-lbl {
    font-size: 10px;
    color: var(--text3);
    font-weight: 600;
    margin-top: 2px;
}

.doc-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--brand);
    color: white;
    border-radius: 10px;
    padding: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 8px;
}

    .doc-book-btn:hover {
        background: var(--brand-dark);
    }

.doc-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 14px;
}

.doc-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 6px;
}

.doc-info-icon {
    font-size: 16px !important;
    color: var(--brand-mid);
}

/* Doctor detail sections */
.doc-detail-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
    margin-bottom: 16px;
}

.doc-detail-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.doc-detail-body {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
    margin: 0;
}

.doc-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

/* Reviews */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: var(--bg);
    border-radius: var(--r-sm);
    padding: 14px;
    border: 1px solid var(--border);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.review-stars {
    display: flex;
    gap: 1px;
    margin-top: 2px;
}

.review-date {
    margin-left: auto;
    font-size: 11px;
}

.review-comment {
    font-size: 13px;
    color: var(--text2);
    margin: 0;
    line-height: 1.6;
}

/* ── Service pages ─────────────────────────────── */
.service-card-tall {
    min-height: 320px;
}

.service-price {
    font-size: 14px;
    font-weight: 800;
    margin: 8px 0;
}

.service-features-preview {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svc-feature-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text2);
}

.svc-feature-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid;
    border-radius: var(--r-sm);
    padding: 10px 12px;
    font-size: 13px;
}

.svc-hero {
    padding: 32px 24px;
}

.svc-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.svc-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    font-family: 'Playfair Display',serif;
}

.svc-hero-sub {
    font-size: 15px;
    color: var(--text2);
    margin: 0 0 12px;
}

.svc-book-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    box-shadow: var(--sh-sm);
    position: sticky;
    top: 90px;
}

.svc-book-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.svc-book-price {
    font-size: 22px;
    font-weight: 800;
    margin: 8px 0;
}

.svc-book-desc {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 16px;
}

.svc-trust-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-trust-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text2);
}

/* How it works steps */
.steps-list {
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: var(--text);
}

.step-connector {
    width: 2px;
    height: 20px;
    margin-left: 15px;
    border-left: 2px dashed;
    opacity: 0.3;
}

/* ── Responsive additions ──────────────────────── */
@media (max-width:768px) {
    .pub-section {
        padding: 24px 16px 0;
    }

    .pub-section-last {
        padding-bottom: 24px;
    }

    .pub-breadcrumb {
        padding: 10px 16px 0;
    }

    .hero-section {
        padding: 48px 16px 72px;
    }

    .pub-page-title {
        font-size: 22px;
    }

    .pub-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pub-filter-field {
        min-width: unset;
    }

    .pub-filter-select {
        min-width: unset;
    }

    .spec-detail-hero {
        padding: 20px 16px;
    }

    .svc-hero {
        padding: 20px 16px;
    }

    .doc-profile-card {
        position: static;
    }

    .svc-book-card {
        position: static;
    }

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

    .doc-stats-grid {
        grid-template-columns: repeat(3,1fr);
    }
}
