/* ==========================================================================
   Nidra Care – Sleep Medicine Design System & Clinic Stylesheet (Refined)
   Palette: Deep Midnight Navy (#061120 / #0b1e36), Cyan/Teal Gradient (#0ea5e9 -> #0d9488),
            Crisp White, Soft Slate Backgrounds
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --navy-950: #061120;
    --navy-900: #0b1e36;
    --navy-850: #0e2442;
    --navy-800: #132e54;
    --navy-700: #1b3d6e;
    
    --teal-500: #0ea5e9;
    --teal-600: #0284c7;
    --teal-400: #38bdf8;
    
    --cyan-500: #06b6d4;
    --emerald-600: #0d9488;
    --emerald-500: #14b8a6;
    --emerald-100: #ccfbf1;
    
    --accent-glow: rgba(14, 165, 233, 0.15);
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --navy-gradient: linear-gradient(135deg, #061120 0%, #0b1e36 50%, #102a4c 100%);

    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #f8fafc;
    
    --border-light: #e2e8f0;
    --border-subtle: #edf2f7;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px -2px rgba(11, 30, 54, 0.08), 0 2px 6px -1px rgba(11, 30, 54, 0.05);
    --shadow-lg: 0 12px 30px -4px rgba(11, 30, 54, 0.12), 0 4px 12px -2px rgba(11, 30, 54, 0.06);
    --shadow-xl: 0 20px 40px -8px rgba(11, 30, 54, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--teal-500);
}

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

/* Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-sm {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Top Notification Bar */
.top-notice-bar {
    background: #071527;
    color: #cbd5e1;
    padding: 0.45rem 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.notice-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.notice-left, .notice-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.notice-badge {
    background: rgba(14, 165, 233, 0.15);
    color: var(--teal-400);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    font-size: 0.82rem;
}

.notice-item a {
    color: #cbd5e1;
}
.notice-item a:hover {
    color: #38bdf8;
}

/* Main Navigation Bar (Clean & Professional) */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 84px;
    display: flex;
    align-items: center;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0.35rem 0;
}

.brand-logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo:hover img {
    transform: scale(1.02);
}

/* Nav Menu & Clean Dropdowns */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy-900);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--teal-600);
    background: rgba(14, 165, 233, 0.08);
}

.nav-link i.dropdown-chevron {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.6rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.dropdown-item i {
    color: var(--teal-600);
    width: 18px;
    font-size: 0.95rem;
    text-align: center;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--teal-600);
    padding-left: 1.35rem;
}

/* Nav Actions Right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    font-size: 1.25rem;
    color: var(--navy-900);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0f766e 100%);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--navy-900);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--navy-900);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--navy-900);
    border-color: #ffffff;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: var(--radius-full);
}

.badge-teal {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.badge-emerald {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.badge-pill-light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

/* Hero Section */
.hero-section {
    background: var(--navy-gradient);
    color: #ffffff;
    position: relative;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0) 70%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.25rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--teal-400);
    margin-bottom: 0.85rem;
}

.hero-description {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.25rem;
}

.hero-stats-row {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item h4 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-item h4 span {
    color: var(--teal-400);
}

.hero-stat-item p {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Diagnostic Visual */
.hero-card-stack {
    position: relative;
}

.hero-main-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.hero-device-box {
    background: #091a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.waveform-chart {
    height: 65px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0.5rem 0;
}

.wave-bar {
    flex: 1;
    background: linear-gradient(180deg, #38bdf8 0%, rgba(14, 165, 233, 0.2) 100%);
    border-radius: 2px;
    animation: wavePulse 3s ease-in-out infinite alternate;
}

@keyframes wavePulse {
    0% { height: 25%; }
    50% { height: 85%; }
    100% { height: 40%; }
}

.hero-floating-badge {
    position: absolute;
    background: rgba(11, 30, 54, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(12px);
    z-index: 3;
}

.badge-pos-1 {
    top: -20px;
    left: -20px;
}

.badge-pos-2 {
    bottom: -20px;
    right: -20px;
}

.floating-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
}

.floating-meta h5 {
    font-size: 0.88rem;
    color: #ffffff;
    margin-bottom: 0.1rem;
}

.floating-meta p {
    font-size: 0.74rem;
    color: #94a3b8;
}

/* General Sections */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background-color: #f1f5f9;
}

.section-dark {
    background: var(--navy-gradient);
    color: #ffffff;
}

.section-dark h2, .section-dark h3 {
    color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal-600);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.section-dark .section-description {
    color: #cbd5e1;
}

/* Symptom Screener Box */
.symptom-checker-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin: 1.75rem 0 2rem;
}

.symptom-item {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.symptom-item:hover {
    border-color: var(--teal-500);
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.symptom-item.selected {
    border-color: var(--teal-600);
    background: #e0f2fe;
}

.symptom-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    color: var(--teal-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.symptom-item.selected .symptom-icon {
    background: var(--teal-600);
    color: #ffffff;
}

.symptom-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.screener-banner {
    background: linear-gradient(135deg, #0b1e36 0%, #17375e 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.screener-banner h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.screener-banner p {
    color: #cbd5e1;
    font-size: 0.88rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: var(--teal-400);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(14, 165, 233, 0.1);
    color: var(--teal-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: var(--accent-gradient);
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Sleep Disorders Grid */
.disorders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.disorder-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.disorder-card:hover {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.disorder-header {
    padding: 1.5rem 1.5rem 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.disorder-header h3 {
    font-size: 1.2rem;
}

.disorder-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--teal-600);
    background: rgba(14, 165, 233, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.disorder-body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
}

.disorder-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.disorder-points {
    list-style: none;
}

.disorder-points li {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.disorder-points li i {
    color: var(--teal-600);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.disorder-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2rem 1.75rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-900);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.service-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Process 5-Step */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.process-step {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    text-align: center;
    transition: all 0.25s ease;
}

.process-step:hover {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy-gradient);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.process-step h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--navy-900);
}

.process-step p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Doctors */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.doctor-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.doctor-card:hover {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.doctor-photo-wrap {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-badge-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(6, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.doctor-content {
    padding: 1.5rem;
}

.doctor-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.doctor-title {
    color: var(--teal-600);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.doctor-quals {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.doctor-specialties {
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    margin-bottom: 1.15rem;
}

.doctor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.85rem;
}

.doctor-fee {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-900);
}

.doctor-fee small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.patient-info h5 {
    font-size: 0.92rem;
    color: var(--navy-900);
}

.patient-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* FAQs */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item.active {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.15rem 1.35rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    font-size: 0.85rem;
    color: var(--teal-600);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.35rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.blog-card:hover {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.blog-header {
    background: linear-gradient(135deg, #0b1e36 0%, #102a4c 100%);
    padding: 1.75rem 1.5rem;
    color: #ffffff;
}

.blog-category-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.25);
    color: var(--teal-400);
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.blog-header h3 {
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.35;
}

.blog-body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
}

.blog-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.blog-footer {
    padding: 0.85rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forms */
.booking-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.booking-header {
    background: var(--navy-gradient);
    color: #ffffff;
    padding: 2.25rem;
}

.booking-header h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

.booking-header p {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.booking-body {
    padding: 2.25rem;
}

.booking-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.booking-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--navy-900);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.concerns-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.concern-check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-900);
    transition: all 0.2s ease;
}

.concern-check-item:hover {
    background: #f0fdfa;
    border-color: var(--teal-500);
}

.concern-check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--teal-600);
}

/* Appointment Slip (Medical Print Voucher) */
.slip-container {
    max-width: 820px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.slip-header {
    background: var(--navy-gradient);
    color: #ffffff;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--teal-400);
}

.slip-header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slip-header-brand img {
    height: 52px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
}

.slip-number-badge h4 {
    color: #ffffff;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.slip-body {
    padding: 2rem;
}

.slip-status-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slip-section-title {
    font-size: 1rem;
    color: var(--navy-900);
    border-bottom: 1.5px solid var(--border-light);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slip-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem 1.75rem;
    margin-bottom: 1.75rem;
}

.slip-info-item label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.slip-info-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.slip-instructions {
    background: #f8fafc;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.75rem;
}

.slip-instructions h5 {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    color: var(--navy-900);
}

.slip-instructions ul {
    list-style-position: inside;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.slip-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   DEDICATED APP SHELL & DASHBOARD (STANDALONE ADMIN & PATIENT PORTAL)
   ========================================================================== */
.app-shell {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.app-sidebar {
    width: 270px;
    background: #071527;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header img {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px;
}

.footer-brand img {
    height: 76px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.sidebar-header-text h3 {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.1;
}

.sidebar-header-text span {
    font-size: 0.7rem;
    color: var(--teal-400);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1rem;
    list-style: none;
}

.sidebar-menu-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    padding: 0.5rem 0.75rem 0.25rem;
    margin-top: 0.5rem;
}

.sidebar-nav-item {
    margin-bottom: 0.3rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: rgba(14, 165, 233, 0.15);
    color: #ffffff;
}

.sidebar-nav-link.active {
    border-left: 3px solid var(--teal-400);
    color: #38bdf8;
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title h2 {
    font-size: 1.25rem;
    color: var(--navy-900);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-content {
    flex: 1;
    padding: 2rem;
}

/* Metrics Cards */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-icon-blue { background: rgba(14, 165, 233, 0.12); color: var(--teal-600); }
.metric-icon-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.metric-icon-purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.metric-icon-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.metric-info h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.metric-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Legacy table rules removed in favor of modern compact data table system at end of file */

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-confirmed { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-completed { background: #e0f2fe; color: #0369a1; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-paid { background: #ecfdf5; color: #047857; }

/* Document Cards */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.doc-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: all 0.2s ease;
}

.doc-card:hover {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.doc-content h4 {
    font-size: 0.92rem;
    color: var(--navy-900);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.doc-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 17, 32, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.25rem;
    overflow-y: auto;
}

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

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 650px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2.5rem);
    margin: auto;
    position: relative;
    animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    background: var(--navy-900);
    color: #ffffff;
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    line-height: 1;
}
.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.25rem 1.4rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.9rem 1.4rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: #061120;
    color: #cbd5e1;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #ffffff;
    padding: 3px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    max-width: 300px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.15rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--teal-400);
}

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

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-contact-item i {
    color: var(--teal-400);
    margin-top: 0.25rem;
}

.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Flash Alerts */
.flash-alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.88rem;
}

.flash-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.flash-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.flash-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Print Rules */
@media print {
    body { background: #ffffff !important; }
    .top-notice-bar, .navbar, .footer, .btn-no-print, .app-sidebar, .app-topbar, .auth-modal-overlay {
        display: none !important;
    }
    .confirmation-page {
        padding: 0 !important;
        background: #ffffff !important;
    }
    .confirmation-page .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    .slip-container {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        margin: 0 !important;
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    .app-main, .app-content { padding: 0 !important; }
}

/* ==========================================================================
   Dashboard & Clinic Portal Layouts (.app-shell, .dashboard-wrapper) - COMPACT
   ========================================================================== */
.app-shell, .dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    width: 100%;
}

.app-sidebar, .dashboard-sidebar {
    width: 235px;
    background: #061120;
    color: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.sidebar-profile {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #0d9488);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-name {
    min-width: 0;
}

.sidebar-name h4 {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-name span {
    font-size: 0.7rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.1rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #38bdf8;
}

.sidebar-link:hover i {
    color: #38bdf8;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(13, 148, 136, 0.18) 100%);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.sidebar-link.active i {
    color: #38bdf8;
}

.app-main, .dashboard-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
}

.app-topbar {
    height: 52px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.app-content {
    padding: 1rem 1.25rem;
    flex: 1;
}

/* Compact Dashboard Page Header */
.dash-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dash-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0;
    line-height: 1.2;
}

.dash-subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Compact Metrics Row & Cards */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.metric-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(11,30,54,0.06);
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.metric-icon-blue { background: #eff6ff; color: #0284c7; }
.metric-icon-green { background: #ecfdf5; color: #059669; }
.metric-icon-purple { background: #f5f3ff; color: #7c3aed; }
.metric-icon-amber { background: #fffbeb; color: #d97706; }

.metric-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0;
    line-height: 1.1;
}

.metric-info p {
    margin: 0.1rem 0 0;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========================================================
   ADVANCED & COMPACT DATA TABLE SYSTEM (Ultra-Dense Medical UI)
   ======================================================== */
.data-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 0.75rem;
}

.table-header {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-header h3, .table-header-left h3 {
    font-size: 0.84rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: -0.01em;
}

.table-counter-badge {
    font-size: 0.67rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.table-counter-badge .pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0ea5e9;
    display: inline-block;
}

.table-header-tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.table-instant-search {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.table-instant-search i {
    position: absolute;
    left: 0.5rem;
    font-size: 0.7rem;
    color: #94a3b8;
    pointer-events: none;
}

.table-instant-search input {
    padding: 0.22rem 0.45rem 0.22rem 1.45rem;
    font-size: 0.74rem;
    height: 26px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    width: 140px;
    background: #f8fafc;
    color: #1e293b;
    transition: width 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.table-instant-search input:focus {
    width: 190px;
    outline: none;
    border-color: #0ea5e9;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.12);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.2;
}

.table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.5rem;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
    vertical-align: middle;
}

.table td {
    padding: 0.28rem 0.5rem;
    font-size: 0.77rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    line-height: 1.25;
}

.table td.nowrap, .table th.nowrap, .nowrap {
    white-space: nowrap !important;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background 0.12s ease;
}

.table tbody tr:hover td {
    background: #f0fdfa !important;
}

/* Striping */
.table-striped tbody tr:nth-of-type(even) td {
    background: #fcfdfe;
}

/* Micro Voucher Chip */
.voucher-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.38rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.71rem;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    white-space: nowrap !important;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.voucher-chip:hover {
    background: #e0f2fe;
    color: #0c4a6e;
    border-color: #7dd3fc;
}

.voucher-chip .copy-hint {
    font-size: 0.62rem;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.voucher-chip:hover .copy-hint {
    opacity: 1;
}

/* Compact Profile / Doctor Cells */
.cell-profile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cell-profile .mini-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid #bae6fd;
}

.cell-profile .profile-details {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.cell-profile .profile-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.79rem;
}

.cell-profile .profile-meta {
    color: #64748b;
    font-size: 0.68rem;
}

/* Compact Date & Slot Cells */
.cell-datetime {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.cell-datetime .date-line {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.76rem;
}

.cell-datetime .slot-line {
    font-size: 0.68rem;
    font-weight: 600;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Advanced Status Badges with Pulse Dots */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.42rem;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap !important;
    line-height: 1.2;
}

.status-badge .badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.status-confirmed { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-confirmed .badge-dot { background: #22c55e; }

.status-completed { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.status-completed .badge-dot { background: #6366f1; }

.status-rescheduled { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-rescheduled .badge-dot { background: #f59e0b; }

.status-pending { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.status-pending .badge-dot { background: #f97316; }

.status-cancelled { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.status-cancelled .badge-dot { background: #ef4444; }

.payment-paid { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.payment-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* Micro Chips for Tags & Symptoms */
.concern-tags-row {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    max-width: 170px;
}

.concern-micro-chip {
    font-size: 0.64rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.06rem 0.32rem;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.concern-micro-chip.teal {
    background: #e0f2fe;
    color: #0284c7;
}

.note-pop {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.67rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 0.08rem 0.32rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}


/* ── Dropdown Action Button for Datatables ── */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 26px;
    padding: 0 0.65rem;
    font-size: 0.71rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.action-dropdown-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.action-dropdown.open .action-dropdown-btn {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.action-dropdown-btn .chevron {
    font-size: 0.55rem;
    opacity: 0.55;
    transition: transform 0.15s;
    margin-left: 2px;
}

.action-dropdown.open .action-dropdown-btn .chevron {
    transform: rotate(180deg);
}

.action-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(11,30,54,0.12), 0 2px 8px rgba(11,30,54,0.06);
    min-width: 162px;
    z-index: 9999;
    padding: 0.3rem;
    display: none;
    animation: menuFadeIn 0.12s ease;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.action-dropdown.open .action-menu {
    display: block;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    line-height: 1.2;
}

.action-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.action-menu-item i {
    width: 14px;
    text-align: center;
    font-size: 0.74rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.action-menu-item:hover i { color: #0284c7; }

.action-menu-item.item-danger { color: #dc2626; }
.action-menu-item.item-danger:hover { background: #fef2f2; color: #b91c1c; }
.action-menu-item.item-danger:hover i { color: #dc2626; }
.action-menu-item.item-danger i { color: #fca5a5; }

.action-menu-item.item-primary { color: #0284c7; font-weight: 600; }
.action-menu-item.item-primary:hover { background: #f0f9ff; }

.action-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.25rem 0;
}

/* Action Button Groups in Table Rows */
.table-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.btn-row-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 24px;
    padding: 0 0.42rem;
    font-size: 0.71rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn-row-action:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-row-action.primary {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-row-action.primary:hover {
    background: #0369a1;
    border-color: #0369a1;
}

.btn-row-action.danger {
    color: #ef4444;
    border-color: #fecaca;
}

.btn-row-action.danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Table column width helpers to reduce horizontal overflow */
.table .col-actions { width: 60px; min-width: 60px; text-align: right; }
.table td.truncate  { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* Table Copy Toast */
.table-copy-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.table-copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Compact Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.14rem 0.45rem;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-confirmed { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-completed { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-rescheduled { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-pending { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.badge-cancelled { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-unpaid { background: #fee2e2; color: #991b1b; }
.badge-primary, .badge-teal { background: #e0f2fe; color: #0369a1; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* Compact Filter Cards */
.filters-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    height: 32px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea {
    height: auto;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.74rem;
    color: #334155;
    margin-bottom: 0.2rem;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 4px;
}

/* Mobile Menu Drawer (Frontend) */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0,0,0,0.25);
    z-index: 2000;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 17, 32, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
}

.mobile-nav-backdrop.active {
    display: block;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .mobile-nav-toggle { display: flex; align-items: center; justify-content: center; }
    .mobile-nav-drawer { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .app-shell, .dashboard-wrapper { flex-direction: column; }
    .app-sidebar, .dashboard-sidebar { width: 100%; height: auto; position: static; min-height: auto; }
}

@media (max-width: 768px) {
    .top-notice-bar { display: none; }
    .brand-logo img { height: 46px; }
    /* Hero section centered on mobile */
    .hero-section {
        text-align: center;
        padding: 2.25rem 0 3rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-badge-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    .hero-title {
        font-size: 2.15rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-tagline {
        text-align: center;
    }
    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .hero-stats-row {
        justify-content: center;
        width: 100%;
        gap: 1.5rem;
        text-align: center;
    }
    .badge-pos-1 { top: -10px; left: 0px; }
    .badge-pos-2 { bottom: -10px; right: 0px; }

    .booking-grid-2, .booking-grid-3 { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .symptom-checker-box { padding: 1.25rem; }
    .booking-body { padding: 1.25rem; }
    .app-content { padding: 1rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }

    /* Post-booking slip & voucher mobile alignment */
    .slip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }
    .slip-header-brand {
        gap: 0.75rem;
    }
    .slip-header-brand img {
        height: 42px;
    }
    .slip-number-badge {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid rgba(255,255,255,0.12);
        padding-top: 0.75rem;
    }
    .slip-body {
        padding: 1.15rem 1rem;
    }
    .slip-status-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .slip-status-banner > div:last-child {
        text-align: left !important;
        border-top: 1px solid rgba(22,101,52,0.15);
        padding-top: 0.4rem;
        width: 100%;
    }
    .slip-info-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .slip-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
    .brand-logo img { height: 40px; }
    .nav-actions { gap: 0.4rem; }
    .nav-actions .btn-sm { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
    .hero-title { font-size: 1.85rem; }
    .hero-description { font-size: 0.92rem; }
    .hero-cta-group .btn { width: 100%; max-width: 100%; }
    .hero-stats-row { gap: 1rem; }
    .hero-stat-item h4 { font-size: 1.4rem; }
    .hero-stat-item p { font-size: 0.68rem; }
    .auth-modal-card { padding: 1.25rem 1rem; }
    .thankyou-card { padding: 1.5rem 1rem !important; }
}

/* Visibility helpers */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* ==========================================================================
   Select2 Theme Overrides for Nidra Care Admin
   ========================================================================== */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.5rem 0 0.25rem !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 0.82rem !important;
    font-family: inherit !important;
    color: #1e293b !important;
    line-height: 30px !important;
    padding-left: 0.35rem !important;
    padding-right: 1.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
    right: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent !important;
    border-width: 0 4px 5px 4px !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15) !important;
    outline: none !important;
}

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
    font-size: 0.82rem !important;
    background: #ffffff !important;
}

.select2-search--dropdown {
    padding: 6px 8px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    padding: 0.35rem 0.55rem !important;
    font-size: 0.8rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    background: #ffffff !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15) !important;
}

.select2-results__options {
    max-height: 220px !important;
    padding: 4px 0 !important;
}

.select2-results__option {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.82rem !important;
    color: #334155 !important;
    line-height: 1.35 !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
}

.select2-results__option[aria-selected="true"] {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 600 !important;
}


