/* ==========================================================================
   FOUNDATION HEALTH CARE - ENTERPRISE DESIGN SYSTEM (style.css)
   ========================================================================== */

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

:root {
    --primary-blue: #0A4D9B;
    --primary-blue-rgb: 10, 77, 155;
    --secondary-orange: #F58220;
    --secondary-orange-rgb: 245, 130, 32;
    --light-bg: #F7FAFC;
    --dark-text: #1E293B;
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #F59E0B;
    --info: #06B6D4;
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 40px rgba(10, 77, 155, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Premium Buttons & UI Accents */
.btn-primary-health {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(10, 77, 155, 0.2);
}
.btn-primary-health:hover {
    background-color: #083c7a;
    border-color: #083c7a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 77, 155, 0.3);
}

.btn-secondary-health {
    background-color: var(--secondary-orange);
    border-color: var(--secondary-orange);
    color: #fff;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.2);
}
.btn-secondary-health:hover {
    background-color: #d96e14;
    border-color: #d96e14;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 130, 32, 0.3);
}

.btn-outline-health {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    background: transparent;
    transition: var(--transition-smooth);
}
.btn-outline-health:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

/* Gradients */
.bg-gradient-blue {
    background: linear-gradient(135deg, #0A4D9B 0%, #032b5c 100%);
}
.bg-gradient-orange {
    background: linear-gradient(135deg, #F58220 0%, #e06900 100%);
}
.bg-gradient-soft {
    background: linear-gradient(135deg, rgba(10, 77, 155, 0.05) 0%, rgba(245, 130, 32, 0.05) 100%);
}

/* Glassmorphism Styling */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(10, 77, 155, 0.15);
}

/* Custom Badges */
.badge-health-primary {
    background-color: rgba(10, 77, 155, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
}
.badge-health-secondary {
    background-color: rgba(245, 130, 32, 0.1);
    color: var(--secondary-orange);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
}

/* Header & Navigation Styles */
.top-header {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-header a {
    color: #cbd5e1;
}
.top-header a:hover {
    color: var(--secondary-orange);
}

.main-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    z-index: 1030;
}
.main-navbar.sticky-top {
    border-bottom: 2px solid var(--primary-blue);
}

.nav-link-health {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--dark-text) !important;
    padding: 0.8rem 1rem !important;
    position: relative;
}
.nav-link-health::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 3px;
    background-color: var(--secondary-orange);
    transition: var(--transition-smooth);
}
.nav-link-health:hover::after,
.nav-link-health.active::after {
    width: 80%;
}
.nav-link-health:hover {
    color: var(--primary-blue) !important;
}

/* Mega Menu Structure */
.mega-menu {
    position: static !important;
}
.mega-menu-content {
    width: 100%;
    left: 0;
    right: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: #fff;
    padding: 2rem;
    
    position: absolute;
    z-index: 1000;
    border-top: 3px solid var(--primary-blue);
}
@media (min-width: 992px) {
    .mega-menu:hover .mega-menu-content {
        display: block;
        animation: fadeInUp 0.3s forwards;
    }
}

/* Hero Section */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    height: 50vh; /* Reduced by 40-50% for better view and scannability */
    min-height: 420px;
    background: #091e3a;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 77, 155, 0.9) 0%, rgba(10, 77, 155, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 750px;
    padding: 2rem 1.5rem;
}
.hero-content h1.display-3 {
    font-size: 2.25rem !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    margin-bottom: 0.75rem !important;
}
.hero-content p.lead {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    max-width: 680px;
}
.hero-content .btn {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}
@media (max-width: 767.98px) {
    .hero-slider-container {
        min-height: 380px;
    }
    .hero-content h1.display-3 {
        font-size: 1.65rem !important;
    }
    .hero-content p.lead {
        font-size: 0.9rem !important;
    }
    .hero-content .btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.8rem !important;
    }
}

/* Section Styling */
.section-padding {
    padding: 3rem 0;
}
.section-title-container {
    margin-bottom: 1.75rem;
    text-align: center;
}
.section-subtitle {
    color: var(--secondary-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.section-title {
    font-size: 2.5rem;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    border-radius: 2px;
}

/* Service Card & Doctor Card Hover */
.service-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(10, 77, 155, 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}
.glass-card:hover .service-icon-box {
    background: var(--secondary-orange);
    color: #fff;
    transform: rotateY(360deg);
}

.doctor-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(10, 77, 155, 0.1);
}
.doctor-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 320px;
    background-color: #cbd5e1;
}
.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.doctor-card:hover .doctor-image-wrapper img {
    transform: scale(1.08);
}
.doctor-socials {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(10, 77, 155, 0.9);
    padding: 0.8rem;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}
.doctor-card:hover .doctor-socials {
    bottom: 0;
}
.doctor-socials a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.1rem;
}
.doctor-socials a:hover {
    color: var(--secondary-orange);
}

/* Global Floating AI Assistant Widget */
.ai-assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
}
.ai-launcher {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    box-shadow: 0 8px 24px rgba(10, 77, 155, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    animation: pulseGlow 2s infinite;
}
.ai-launcher:hover {
    transform: scale(1.1) rotate(15deg);
}

.ai-chat-window {
    width: 380px;
    max-width: 95vw;
    height: 550px;
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: none !important;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(10, 77, 155, 0.1);
    transform-origin: bottom right;
}
.ai-chat-window.active {
    display: flex !important;
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #032b5c 100%);
    color: #fff;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
}
.ai-chat-footer {
    padding: 0.8rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}
.chat-msg {
    margin-bottom: 0.8rem;
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}
.chat-msg.bot {
    background: #e2e8f0;
    color: var(--dark-text);
    border-top-left-radius: 0;
    align-self: flex-start;
}
.chat-msg.user {
    background: var(--primary-blue);
    color: #fff;
    border-top-right-radius: 0;
    margin-left: auto;
}

/* ==========================================================================
   ENTERPRISE DASHBOARD SPECIFIC STYLES
   ========================================================================== */

/* Main Dashboard Shell */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

/* Collapsible Sticky Sidebar */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    color: #94a3b8;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    z-index: 1010;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}
.dashboard-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    padding: 0.75rem 1.25rem;
    height: 65px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    white-space: nowrap;
}
.sidebar-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-left: 10px;
    transition: var(--transition-smooth);
}
.dashboard-sidebar.collapsed .sidebar-logo-text {
    opacity: 0;
    width: 0;
    margin-left: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.sidebar-item {
    margin-bottom: 0.15rem;
    padding: 0 0.8rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #94a3b8;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.sidebar-link i {
    font-size: 1.25rem;
    width: 25px;
    margin-right: 15px;
    text-align: center;
    transition: var(--transition-smooth);
}
.dashboard-sidebar.collapsed .sidebar-link i {
    margin-right: 0;
}
.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(10, 77, 155, 0.15);
    color: #fff;
}
.sidebar-link.active i {
    color: var(--secondary-orange);
}
.sidebar-link span {
    transition: opacity 0.3s;
}
.dashboard-sidebar.collapsed .sidebar-link span {
    opacity: 0;
    width: 0;
    
}

/* Sidebar Role Badge */
.sidebar-role-indicator {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-align: center;
    color: #fff;
}
.dashboard-sidebar.collapsed .sidebar-role-indicator {
    
}

/* Dashboard Header & Main Content Area */
.dashboard-content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
}

.dashboard-navbar {
    height: 65px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
}

/* Dynamic Content Section */
.dashboard-body {
    flex-grow: 1;
    padding: 1.25rem;
    background-color: #f8fafc;
}

/* Stat Cards for Dashboards */
.metric-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
}
.metric-card.orange::before {
    background: var(--secondary-orange);
}
.metric-card.success::before {
    background: var(--success);
}
.metric-card.danger::before {
    background: var(--danger);
}
.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}
.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Interactive Role Panel */
.role-picker-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    margin: 3px;
    border-radius: 30px;
    padding: 0.4rem 0.9rem;
    transition: var(--transition-smooth);
}

/* Timeline & Activity Widgets */
.timeline-health {
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
    position: relative;
}
.timeline-item-health {
    position: relative;
    padding-bottom: 1.5rem;
}
.timeline-item-health::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(10, 77, 155, 0.2);
}
.timeline-item-health.orange::before {
    background-color: var(--secondary-orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2);
}
.timeline-item-health.success::before {
    background-color: var(--success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Animations */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(10, 77, 155, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(10, 77, 155, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(10, 77, 155, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Telemedicine Waiting Room */
.waiting-room-indicator {
    position: relative;
    display: inline-block;
}
.waiting-room-indicator::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success);
    border: 2px solid #fff;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Custom CSS for Login cards */
.login-role-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}
.login-role-card:hover, .login-role-card.selected {
    border-color: var(--primary-blue);
    background-color: rgba(10, 77, 155, 0.03) !important;
    transform: translateY(-5px);
}
.login-role-card i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}
.login-role-card:hover i {
    color: var(--secondary-orange) !important;
}

/* Media Queries for Responsiveness */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: fixed;
        left: -100%;
        height: 100vh;
    }
    .dashboard-sidebar.mobile-show {
        left: 0;
        width: var(--sidebar-width);
    }
    .hero-slider-container {
        height: 70vh;
    }
    
    /* Mobile Mega Menu Sync (Task 5) */
    .mega-menu-content {
        position: static !important;
        box-shadow: none !important;
        padding: 1.5rem 1rem !important;
        background: #f8fafc !important;
        border-top: none !important;
        border-left: 3px solid var(--primary-blue) !important;
        
    }
    
}

/* Premium NutriMind-Style Calendar & Time-Slot Scheduler */
.cal-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.cal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.cal-month {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-blue);
}
.cal-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
    color: var(--dark-text);
}
.cal-btn:hover {
    background: rgba(10, 77, 155, 0.05);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.days-hd {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}
.day-nm {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    padding: 4px;
    text-transform: uppercase;
}
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-d {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1.5px solid transparent;
    position: relative;
}
.cal-d.empty, .cal-d.past {
    color: #cbd5e1;
    cursor: default;
    pointer-events: none;
    background: #f8fafc;
}
.cal-d.today {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 800;
}
.cal-d.selected {
    background: var(--primary-blue) !important;
    color: #fff !important;
    border-color: var(--primary-blue) !important;
}
.cal-d.has-slot:not(.past):not(.empty):hover {
    background: rgba(10, 77, 155, 0.08);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.cal-d.has-slot::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}
.slots-head {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin: 1.5rem 0 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 8px;
}
.slot {
    padding: 8px 6px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: #fff;
    color: var(--dark-text);
}
.slot:hover:not(.booked) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(10, 77, 155, 0.05);
}
.slot.selected {
    background: var(--primary-blue) !important;
    color: #fff !important;
    border-color: var(--primary-blue) !important;
}
.slot.booked {
    color: #cbd5e1;
    border-color: #f1f5f9;
    background: #f8fafc;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}
.appt-summary {
    background: rgba(10, 77, 155, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-blue);
    animation: fadeInUp 0.3s ease-in-out;
}

/* ==========================================================================
   GLOBAL FOOTER VISIBILITY & CONTRAST FIX
   ========================================================================== */
footer.bg-dark {
    background-color: #0f172a !important; /* Rich Dark Charcoal-Slate */
    color: #94a3b8 !important; /* Soft Slate for high readability */
}
footer.bg-dark h4, footer.bg-dark h5, footer.bg-dark h6 {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}
footer.bg-dark a {
    color: #cbd5e1 !important; /* Light slate grey for high contrast */
    text-decoration: none !important;
    transition: var(--transition-smooth);
    display: inline-block;
}
footer.bg-dark a:hover {
    color: var(--secondary-orange) !important;
    transform: translateX(4px);
}
footer.bg-dark p, footer.bg-dark li, footer.bg-dark span {
    color: #cbd5e1 !important;
}
footer.bg-dark hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   LINKEDIN-STYLE DOCTOR PROFILE CUSTOM LAYOUT
   ========================================================================== */
.linkedin-profile-container {
    max-width: 1100px;
    margin: 2rem auto;
}
.linkedin-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}
.linkedin-banner {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #032b5c 100%);
    position: relative;
}
.linkedin-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.linkedin-avatar-wrapper {
    position: absolute;
    top: 145px;
    left: 40px;
    z-index: 10;
}
.linkedin-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    object-fit: cover;
}
.linkedin-header-info {
    padding: 85px 40px 30px 40px;
}
.linkedin-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-text);
}
.linkedin-headline {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 0.5rem;
}
.linkedin-meta {
    font-size: 0.9rem;
    color: #64748b;
}
.linkedin-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.linkedin-sec-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 1rem;
}
.linkedin-exp-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1.5rem;
}
.linkedin-exp-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-orange);
}
.linkedin-exp-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: -20px;
    width: 2px;
    background-color: #cbd5e1;
}
.linkedin-exp-item:last-child::after {
    
}
.linkedin-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.linkedin-skill-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   DATE-WISE PHOTO & EVENT-WISE VIDEO GALLERY LAYOUT
   ========================================================================== */
.gallery-tab-btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.gallery-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.gallery-media-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f1f5f9;
}
.gallery-media-wrapper img, .gallery-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-card:hover .gallery-media-wrapper img {
    transform: scale(1.08);
}
.gallery-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.gallery-event-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--secondary-orange);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}
.gallery-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 130, 32, 0.95);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.4);
}
.gallery-card:hover .gallery-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(10, 77, 155, 0.4);
}

/* ==========================================================================
   MEDICOVER-STYLE SCROLLING SLIDERS (SEO-OPTIMISED & BULLETPROOF HIGH-SPEED)
   ========================================================================== */
.scroll-container-wrapper {
    position: relative;
    padding: 0 3rem;
}
.scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1.5rem 0.25rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.scroll-container::-webkit-scrollbar {
     /* Hide scrollbar Chrome/Safari */
}
.scroll-card {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(10, 77, 155, 0.08);
    border-color: rgba(10, 77, 155, 0.2);
}
.scroll-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--primary-blue);
    font-size: 1.1rem;
}
.scroll-arrow-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(10, 77, 155, 0.3);
}
.scroll-arrow-btn.prev {
    left: 0;
}
.scroll-arrow-btn.next {
    right: 0;
}

@media (max-width: 767.98px) {
    .scroll-container-wrapper {
        padding: 0 1rem;
    }
    .scroll-arrow-btn {
        display: none !important; /* Touch swipe on mobile is standard */
    }
    .scroll-card {
        flex: 0 0 260px;
        padding: 1.2rem;
    }
}

/* ==========================================================================
   GLOBAL PRICING DISPLAY CONCEALMENT (ROLE-BASED VIEWPORT ONLY)
   ========================================================================== */
/* Bulletproof CSS rules to hide all price labels, strong nodes, badges, and totalizers site-wide by default */
body:not(.show-pricing) .scroll-card .mt-auto > div:first-child,
body:not(.show-pricing) .diagnostic-package-card strong.text-primary.fs-5,
body:not(.show-pricing) .diagnostic-package-card .mt-auto strong,
body:not(.show-pricing) .card.p-3.border-2.border-primary.h-100.bg-white.shadow-sm.transition-smooth strong.text-primary,
body:not(.show-pricing) .diagnostic-package-card strong,
body:not(.show-pricing) #diagnosticsCalcBox,
body:not(.show-pricing) #cartTotalPrice,
body:not(.show-pricing) .badge.bg-primary.text-white.ms-2,
body:not(.show-pricing) .badge.bg-success.text-white.ms-2,
body:not(.show-pricing) .badge.bg-warning.text-dark.ms-2,
body:not(.show-pricing) .donation-impact-card h3,
body:not(.show-pricing) .donation-impact-card h3.text-primary,
body:not(.show-pricing) .donation-impact-card h3.text-warning,
body:not(.show-pricing) .donation-impact-card h3.text-info,
body:not(.show-pricing) #finalContr,
body:not(.show-pricing) #finalDeduct,
body:not(.show-pricing) #taxResultBox,
body:not(.show-pricing) .tax-calculator-widget,
body:not(.show-pricing) .diagnostics-sidebar-calculator,
body:not(.show-pricing) #diagnosticsSelectedCount,
body:not(.show-pricing) #diagnosticsTotalPrice,
body:not(.show-pricing) #cartTotalPrice,
body:not(.show-pricing) .badge.bg-light.text-primary + strong,
body:not(.show-pricing) .input-group:has(#customDonationAmt) .input-group-text,
body:not(.show-pricing) .input-group:has(#taxContrAmt) {
    display: none !important;
}

/* Adapt spacing when price widgets are concealed */
body:not(.show-pricing) .scroll-card .mt-auto,
body:not(.show-pricing) .diagnostic-package-card .mt-auto,
body:not(.show-pricing) .d-flex.justify-content-between.align-items-center {
    justify-content: flex-end !important;
}
body:not(.show-pricing) .scroll-card .mt-auto a,
body:not(.show-pricing) .diagnostic-package-card .mt-auto a,
body:not(.show-pricing) .diagnostic-package-card .mt-auto button {
    margin-left: auto !important;
}

/* ==========================================================================
   RESPONSIVE DOCTOR PROFILE OVERRIDES & OVERLAPS FIX
   ========================================================================== */
@media (max-width: 991.98px) {
    .linkedin-banner {
        height: 180px;
    }
    .linkedin-avatar-wrapper {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        margin-top: -75px;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
    }
    .linkedin-avatar {
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    }
    .linkedin-header-info {
        padding: 20px 25px 30px 25px;
    }
    .linkedin-header-info .d-flex.justify-content-between {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 15px;
    }
    .linkedin-header-info .bg-light {
        max-width: 100% !important;
        width: 100%;
        text-align: center;
    }
    .linkedin-actions {
        justify-content: center;
    }
}

/* ==========================================================================
   WHATSAPP LIVE CLINICAL CHAT & NOTIFICATIONS DRAWERS STYLE
   ========================================================================== */
.whatsapp-chat-drawer, .notifications-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1060;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}
@media (max-width: 575.98px) {
    .whatsapp-chat-drawer, .notifications-drawer {
        width: 100%;
        right: -100%;
    }
}
.whatsapp-chat-drawer.show, .notifications-drawer.show {
    right: 0;
}

/* WhatsApp Theme Header */
.whatsapp-drawer-header {
    background: #075E54;
    padding: 15px 20px;
    color: #ffffff;
    height: 70px;
    flex-shrink: 0;
}
.notifications-drawer-header {
    background: #0a4d9b;
    padding: 15px 20px;
    color: #ffffff;
    height: 70px;
    flex-shrink: 0;
}

/* WhatsApp Drawer Layout */
.whatsapp-drawer-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    height: calc(100vh - 70px);
}
.whatsapp-contacts-sidebar {
    width: 150px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #f3f4f6;
    flex-shrink: 0;
}
.whatsapp-contacts-list {
    flex-grow: 1;
    overflow-y: auto;
}
.whatsapp-contact-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
    gap: 6px;
}
.whatsapp-contact-item:hover, .whatsapp-contact-item.active {
    background: #e5e7eb;
}
.whatsapp-contact-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.whatsapp-contact-item .contact-details {
    overflow: hidden;
    flex-grow: 1;
}
.whatsapp-contact-item .contact-details strong {
    font-size: 0.72rem;
    color: #1f2937;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.whatsapp-contact-item .contact-details p {
    font-size: 0.62rem;
    color: #4b5563;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.whatsapp-contact-item .time {
    font-size: 0.58rem;
    color: #9ca3af;
}

/* WhatsApp Chat Panel */
.whatsapp-chat-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #efe7dd url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png') repeat;
}
.whatsapp-chat-header {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.whatsapp-chat-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.whatsapp-chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.whatsapp-message {
    display: flex;
    width: 100%;
}
.whatsapp-message.rx {
    justify-content: flex-start;
}
.whatsapp-message.tx {
    justify-content: flex-end;
}
.whatsapp-message .bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
    line-height: 1.4;
}
.whatsapp-message.rx .bubble {
    background: #ffffff;
    color: #303030;
    border-top-left-radius: 0;
}
.whatsapp-message.tx .bubble {
    background: #d9fdd3;
    color: #303030;
    border-top-right-radius: 0;
}
.whatsapp-message .bubble .time {
    display: block;
    font-size: 0.58rem;
    color: #7f8c8d;
    text-align: right;
    margin-top: 4px;
}

/* Notifications Drawer Body */
.notifications-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
}
.notification-item {
    transition: background 0.2s, border-color 0.2s;
}
.notification-item.unread {
    background: rgba(10, 77, 155, 0.03) !important;
}

/* Drawer Overlay Backdrop */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1050;
    
}



@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

