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

:root {
    --primary: #2daa2d;
    --primary-light: #e8f5e9;
    --text-dark: #333;
    --text-gray: #666;
    --white: #ffffff;
    --danger: #dc3545;

    /* Dashboard Vars */
    --primary-green: #2ecc71;
    --sidebar-bg: #1a1c23;
    --bg-color: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Dark Mode Vars */
body.dark-mode {
    --bg-color: #111827;
    --text-dark: #f9fafb;
    --text-gray: #9ca3af;
    --white: #1f2937;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    background-color: #111827;
    background-image: none;
    color: #f9fafb;
}

body.dark-mode .card,
body.dark-mode .sidebar,
body.dark-mode .auth-modal,
body.dark-mode .settings-header-card,
body.dark-mode .mobile-header {
    background-color: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

body.dark-mode .section-title,
body.dark-mode .action-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f9fafb;
}

body.dark-mode .settings-input,
body.dark-mode .search-input,
body.dark-mode .filter-btn,
body.dark-mode .btn-outline-gray {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .appointment-item {
    background-color: #374151;
}

body.dark-mode .nav-link {
    color: #d1d5db;
}

body.dark-mode .chart-select {
    color: #d1d5db;
}

/* --- COMPREHENSIVE DARK MODE TEXT & UI FIXES --- */

/* 1. Fix the Metrics and Hardcoded Dark Text */
body.dark-mode .metric-value-large,
body.dark-mode .text-gray-800,
body.dark-mode .text-gray-700 {
    color: #f9fafb !important;
}

body.dark-mode .metric-label,
body.dark-mode .text-gray-500,
body.dark-mode .text-gray-600,
body.dark-mode .subtitle,
body.dark-mode .settings-input-group label {
    color: #9ca3af !important;
}

/* 2. Fix the Health History Tables */
body.dark-mode .history-table td {
    color: #e5e7eb;
    border-bottom-color: #374151;
}

body.dark-mode .history-table th {
    color: #9ca3af;
    border-bottom-color: #4b5563;
}

body.dark-mode #report-preview-body tr:nth-child(even) {
    background-color: #374151;
}

/* 3. Fix Secondary Buttons */
body.dark-mode .btn-gray-light {
    background-color: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

body.dark-mode .btn-gray-light:hover {
    background-color: #4b5563;
}

/* 4. Soften Alerts & Status Badges for Dark UI */
body.dark-mode .alert-green  { background-color: rgba(22, 163, 74, 0.15);  border-color: rgba(22, 163, 74, 0.3);  }
body.dark-mode .alert-yellow { background-color: rgba(202, 138, 4, 0.15);  border-color: rgba(202, 138, 4, 0.3);  }
body.dark-mode .alert-orange { background-color: rgba(234, 88, 12, 0.15);  border-color: rgba(234, 88, 12, 0.3);  }
body.dark-mode .alert-red    { background-color: rgba(220, 38, 38, 0.15);  border-color: rgba(220, 38, 38, 0.3);  }

body.dark-mode .status-confirmed { background-color: rgba(22, 163, 74, 0.2); color: #4ade80; }
body.dark-mode .status-pending { background-color: rgba(202, 138, 4, 0.2); color: #facc15; }
body.dark-mode .status-past { background-color: rgba(75, 85, 99, 0.4); color: #d1d5db; }

/* 5. Fix Dashboard Icon Boxes */
body.dark-mode .appt-icon-gray { background-color: #374151; color: #d1d5db; }
body.dark-mode .appt-icon-green { background-color: rgba(22, 163, 74, 0.2); color: #4ade80; }
body.dark-mode .appt-icon-blue { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }
body.dark-mode .appt-icon-purple { background-color: rgba(147, 51, 234, 0.2); color: #c084fc; }

/* 6. Overwrite Inline HTML Backgrounds */
body.dark-mode .bg-gray-50,
body.dark-mode .bg-gray-100,
body.dark-mode .bg-gray-200 {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

body.dark-mode .bg-white {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('assets/top-view-tensiometer-checking-blood-pressure.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #e9dcdc;
    font-family: 'Poppins', sans-serif;
}

/* --- UTILITIES --- */
.cursor-pointer { cursor: pointer; }
.text-center-muted { text-align: center; color: #666; font-size: 13px; margin-bottom: 20px; }
.input-label { font-size: 12px; color: #666; }
.hidden-view { display: none; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-red-500 { color: #ef4444; }
.text-yellow-600 { color: #ca8a04; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.border-none { border: none !important; }
.link-no-decor { text-decoration: none; }
.overflow-hidden { overflow: hidden; }

/* --- LANDING PAGE STYLES --- */
.decorations-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.deco-ring { position: absolute; border-radius: 50%; border-style: solid; opacity: 0.5; }
.deco-ring.large-green { width: 400px; height: 400px; border-width: 60px; border-color: rgba(46, 184, 46, 0.4); top: -150px; right: -150px; }
.deco-ring.bottom-gray { width: 300px; height: 300px; border-width: 50px; border-color: rgba(46, 184, 46, 0.4); bottom: -100px; left: -200px; }
.deco-plus { position: absolute; color: #2daa2d; opacity: 0.6; animation: float 6s ease-in-out infinite; }
.plus-pos-1 { top: 20%; left: 40%; font-size: 30px; }
.plus-pos-2 { top: 15%; right: 10%; font-size: 20px; animation-delay: 1s; }
.plus-pos-3 { bottom: 30%; left: 20%; font-size: 25px; animation-delay: 2s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.navbar { display: flex; align-items: center; justify-content: center; padding: 0 5%; height: 80px; width: 100%; max-width: 1400px; margin: 0 auto; position: relative; z-index: 50; }
.logo { font-weight: 700; font-size: 24px; color: #333; z-index: 10; position: absolute; left: 5.5%; display: flex; align-items: center; }
.logo img { height: 120px; width: auto; object-fit: contain; }
.nav-links { display: flex; list-style: none; gap: 50px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; font-size: 16px; transition: color 0.3s; }
.nav-links a:hover { color: #2daa2d; }

.hero-container { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; height: calc(100vh - 80px); padding: 0 7%; max-width: 1400px; margin: 0 auto; position: relative; z-index: 5; }
.hero-content { max-width: 550px; z-index: 20; }
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; color: #333; line-height: 1.1; font-weight: 800; }
.highlight { color: #2daa2d; }
.hero-content p { font-size: 13px; color: #333; margin-bottom: 30px; line-height: 1.6; max-width: 400px; }
.info-btn { padding: 12px 35px; border-radius: 50px; border: 2px solid #2daa2d; background: rgba(45, 170, 45, 0.1); color: #2daa2d; font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.3s; }
.info-btn:hover { background: #2daa2d; color: white; }

.auth { display: flex; gap: 30px; margin-top: 50px; }
.auth-options { display: flex; flex-direction: column; gap: 5px; }
.auth-label { font-size: 11px; color: #444; font-weight: 700; margin-left: 5px; display: flex; justify-content: center; }
.login-btn, .signup-btn { width: 150px; padding: 14px 0; border: none; border-radius: 12px; font-size: 18px; font-weight: 500; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-align: center; }
.login-btn { background: #333; color: white; }
.signup-btn { background: #2daa2d; color: white; box-shadow: 0 4px 15px rgba(45, 170, 45, 0.3); }
.login-btn:hover, .signup-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }

.hero-image { height: 100%; position: relative; z-index: 10; pointer-events: none; display: flex; justify-content: center; align-items: flex-end; overflow: visible; }
.hero-image img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 90vh; width: auto; max-width: none; object-fit: contain; z-index: 10; }

.appointment-card { background: white; border-radius: 35px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); width: 100%; max-width: 380px; padding: 30px; margin-left: auto; position: relative; z-index: 5; }
.card-header { background: #2daa2d; padding: 18px; border-radius: 15px; text-align: center; margin-bottom: 25px; }
.card-header h3 { color: white; font-size: 20px; font-weight: 800; margin: 0; }
.card-body p { color: #555; font-size: 11px; margin-bottom: 25px; line-height: 1.5; padding: 0 5px; }

.form-group { margin-bottom: 15px; }
.form-control { width: 100%; padding: 16px 20px; background-color: #f0f2f5; border: none; border-radius: 10px; font-family: inherit; font-size: 13px; color: #333; outline: none; }
.form-control:focus { background-color: #e6e6e6; }
.book-btn { background: #2daa2d; color: white; padding: 12px 35px; border: none; border-radius: 50px; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 15px; transition: background 0.3s; display: inline-block; }
.book-btn:hover { background: #258e25; }
.btn-full { width: 100%; margin: 0; }

/* --- DASHBOARD STYLES --- */
#dashboard-view { display: none; width: 100%; height: 100vh; grid-template-columns: 300px 1fr; font-family: 'Inter', sans-serif; background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('assets/top-view-tensiometer-checking-blood-pressure.jpg') no-repeat center center fixed; background-size: cover; position: fixed; top: 0; left: 0; z-index: 100; padding-top: 0; }
.dash-left-pane { height: 100vh; display: flex; flex-direction: column; }
.dash-logo-area { padding: 10px 3rem 0 3rem; height: 80px; display: flex; align-items: center; justify-content: flex-start; flex-shrink: 0; }
.dashboard-logo-img { height: 120px; width: auto; object-fit: contain; }
.dash-sidebar-area { flex: 1; padding: 0 0 1.5rem 3rem; overflow: visible; display: flex; flex-direction: column; }
.sidebar { background-color: var(--sidebar-bg); color: white; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15); height: 100%; border-radius: 2rem; position: relative; overflow: hidden; padding-bottom: 1.5rem; }
.sidebar-inner { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.dash-right-pane { height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.dash-header-area { padding: 10px 3rem 0 3rem; height: 80px; display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; }
.dash-content-area { flex: 1; padding: 0 3rem 1.5rem 3rem; }

.nav-menu { margin-top: 2rem; padding: 0 1.5rem; flex: 1; position: relative; z-index: 20; overflow-y: auto; }
.nav-menu::-webkit-scrollbar { width: 6px; }
.nav-menu::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.nav-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
.nav-menu::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

.nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.nav-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: #94a3b8; transition: all 0.2s; font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.85rem 1rem; border-radius: 1rem; cursor: pointer; }
.nav-link:hover { color: white; background-color: rgba(255, 255, 255, 0.05); }
.nav-link i { width: 24px; text-align: center; font-size: 1.125rem; }
.nav-item.active .nav-link { color: var(--primary-green); font-weight: 600; background-color: rgba(46, 204, 113, 0.1); }



.mobile-header { display: none; background: white; padding: 1rem; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); }
.mobile-logo { height: 40px; width: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; color: #94a3b8; cursor: pointer; transition: color 0.2s; }
.btn-ghost { border: none; box-shadow: none; }

.profile-pic { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid white; box-shadow: var(--shadow-md); background-color: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #6b7280; font-size: 0.9rem; }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }

.dashboard-container { width: 100%; display: flex; flex-direction: column; gap: 1.5rem; }
.card { background: white; border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-green); }

.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-main-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.grid-trends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.dash-welcome-header h1 { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin-bottom: 0.25rem; }
.icon-bg-green { width: 40px; height: 40px; border-radius: 12px; background-color: rgba(46, 204, 113, 0.1); color: var(--primary-green); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.appointment-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #f8fafc; border-radius: 1rem; margin-bottom: 1rem; }
.doctor-avatar { width: 48px; height: 48px; border-radius: 50%; background-color: var(--primary-green); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; flex-shrink: 0; }

.btn-action { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 1rem; border-radius: 1rem; font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; text-align: left; }
.btn-green-solid { background-color: var(--primary-green); color: white; border: none; justify-content: center; }
.btn-gray-light { background-color: #f8fafc; color: #333; border: 1px solid #f1f5f9; }
.btn-gray-light:hover { background-color: #f1f5f9; }
.btn-auto { width: auto !important; }
.btn-padded { width: auto !important; padding: 0.5rem 1.5rem !important; }
.btn-padded-lg { width: auto !important; padding: 0.75rem 2rem !important; }

.alert-item { display: flex; gap: 1rem; padding: 1rem; border-radius: 1rem; margin-bottom: 1rem; transition: background 0.3s; }
.alert-green  { background-color: #f0fdf4; border: 1px solid #dcfce7; }
.alert-yellow { background-color: #fefce8; border: 1px solid #fef9c3; }
.alert-orange { background-color: #fff7ed; border: 1px solid #fed7aa; }
.alert-red    { background-color: #fef2f2; border: 1px solid #fee2e2; }
/* bg-orange-500 utility */
.bg-orange-500 { background-color: #f97316 !important; }
.alert-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.icon-red { color: #dc2626; }
.bg-green-500 { background-color: var(--primary-green); color: white; }
.bg-yellow-500 { background-color: #eab308; color: white; }
.bg-blue-500 { background-color: #3b82f6; color: white; }
.bg-red-500 { background-color: #ef4444; color: white; }

.appt-summary-card { padding: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.appt-icon-lg { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.appt-icon-green { background: #dcfce7; color: #16a34a; }
.appt-icon-blue { background: #dbeafe; color: #2563eb; }
.appt-icon-purple { background: #f3e8ff; color: #9333ea; }
.appt-icon-gray { background: #f3f4f6; color: #4b5563; }

.search-bar-container { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.search-input-wrapper { flex: 1; position: relative; }
.search-input-wrapper i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.search-input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem; border: 1px solid #e5e7eb; border-radius: 0.75rem; font-family: inherit; font-size: 0.9rem; outline: none; }
.filter-btn { padding: 0.75rem 1.5rem; background: white; border: 1px solid #e5e7eb; border-radius: 0.75rem; color: #374151; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

.detailed-appt-card { background: white; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem; margin-bottom: 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: flex-start; }
.appt-status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.status-confirmed { background: #dcfce7; color: #16a34a; }
.status-past { background: #f3f4f6; color: #4b5563; }
.status-pending { background: #fefce8; color: #ca8a04; }
.appt-details-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin: 1rem 0; }
.appt-detail-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #4b5563; }
.appt-actions { display: flex; gap: 0.75rem; }
.btn-sm { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }
.btn-cancel { border: none; background: none; color: #dc2626; padding: 0.5rem; font-size: 0.875rem; cursor: pointer; }

.settings-header-card { background: white; border-radius: 1rem; padding: 1.5rem; border: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.settings-profile-info { display: flex; align-items: center; gap: 1.5rem; }
.settings-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-green); color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 600; position: relative; overflow: hidden; cursor: pointer; }
.settings-avatar img { width: 100%; height: 100%; object-fit: cover; }
.settings-avatar::after { content: '\f030'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; opacity: 0; transition: opacity 0.2s; }
.settings-avatar:hover::after { opacity: 1; }
.verified-badge { display: inline-flex; align-items: center; gap: 0.25rem; background: #dcfce7; color: #16a34a; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; border: 1px solid #bbf7d0; }
.settings-section-title { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: #1f2937; }
.settings-icon-box { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; }
.settings-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.settings-input-group label { display: block; font-size: 0.8rem; font-weight: 500; color: #4b5563; margin-bottom: 0.5rem; }
.settings-input { width: 100%; padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; font-family: inherit; font-size: 0.9rem; color: #1f2937; outline: none; transition: border-color 0.2s; }
.settings-input:focus { border-color: var(--primary-green); }

.toggle-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid #f3f4f6; }
.toggle-item:last-child { border-bottom: none; }
.toggle-switch { position: relative; width: 44px; height: 24px; background: #e5e7eb; border-radius: 9999px; cursor: pointer; transition: background 0.2s; }
.toggle-switch.checked { background: var(--primary-green); }
.toggle-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.toggle-switch.checked .toggle-thumb { transform: translateX(20px); }

.btn-outline-red { border: 1px solid #fecaca; color: #dc2626; background: white; width: 100%; padding: 0.75rem; border-radius: 0.5rem; font-weight: 500; cursor: pointer; margin-top: 0.5rem; }
.btn-outline-gray { border: 1px solid #e5e7eb; color: #374151; background: white; width: 100%; padding: 0.75rem; border-radius: 0.5rem; font-weight: 500; cursor: pointer; }
.footer-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; padding-bottom: 2rem; }

.trend-bar-container { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-top: 10px; }
.trend-bar { width: 100%; background-color: var(--primary-green); border-radius: 4px; opacity: 0.8; }

#report-preview-body { font-size: 0.85rem; color: #333; }
#report-preview-body tr:nth-child(even) { background-color: #f9fafb; }
#report-preview-body td { padding: 0.75rem; border-bottom: 1px solid #f3f4f6; }
.modal-footer { margin-top: 1.5rem; display: flex; gap: 1rem; border-top: 1px solid #e5e7eb; padding-top: 1.5rem; }
.modal-wide { max-width: 600px; }
.select-bordered { border: 1px solid #e2e8f0; border-radius: 6px; }
.table-scroll-container { max-height: 300px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 1.5rem; }
.table-header-sticky { background: #f8fafc; position: sticky; top: 0; }

.page-title-badge { background-color: var(--sidebar-bg); border-radius: 0.4rem 0 0 0.4rem; padding: 0.6rem 2.5rem 0.6rem 1.25rem; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)); position: absolute; top: 0; left: 2rem; transform: translateY(-100%); z-index: 10; }
.page-title-badge::after { content: ''; position: absolute; top: 0; bottom: 0; right: -1rem; width: 2rem; background-color: inherit; transform: skewX(20deg); border-top-right-radius: 0.6rem; z-index: -1; }
.page-title-badge h2 { font-size: 0.85rem; color: white; font-weight: 600; }

.dash-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: 10px; }
.section-title { font-size: 1.125rem; font-weight: 700; color: #1e293b; }
.subtitle { font-size: 0.75rem; color: #94a3b8; margin-top: 0.25rem; }
.chart-controls { display: flex; gap: 10px; align-items: center; }
.chart-tabs, .time-tabs { display: flex; gap: 5px; background: #f8fafc; padding: 3px; border-radius: 8px; }
.divider-vertical { width: 1px; height: 20px; background: #e2e8f0; }
.chart-select { font-size: 0.75rem; background-color: transparent; border: none; color: #64748b; padding: 0.4rem 0.8rem; border-radius: 0.5rem; cursor: pointer; transition: all 0.2s ease; }
.chart-select:hover { background-color: #e2e8f0; }
.chart-select.active { background-color: var(--primary-green); color: white; box-shadow: 0 2px 4px rgba(46, 204, 113, 0.2); }
.chart-wrapper { width: 100%; height: 300px; }

.metrics-section-title { font-size: 1.125rem; font-weight: 700; color: #1e293b; margin-bottom: 1rem; padding-left: 0.25rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.metric-card-content { display: flex; align-items: center; gap: 1rem; cursor: pointer; }
.metric-icon-box { width: 64px; height: 64px; border-radius: var(--radius-lg); background-color: var(--primary-green); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; box-shadow: 0 10px 15px -3px rgba(46, 204, 113, 0.3); flex-shrink: 0; }
.theme-bp { background-color: #ffebee; color: #d32f2f; }
.theme-weight { background-color: #ecfccb; color: #65a30d; }
.theme-glucose { background-color: #e0f2fe; color: #0284c7; }
.theme-temp { background-color: #fff3e0; color: #ea580c; }
.metric-info { flex: 1; }
.metric-label { font-size: 0.875rem; font-weight: 500; color: #64748b; margin-bottom: 0.25rem; }
.metric-value-large { font-size: 1.5rem; font-weight: 700; color: #1e293b; }
.metric-unit { font-size: 0.75rem; color: #94a3b8; font-weight: 400; }
.value-group { display: flex; align-items: baseline; gap: 4px; }

.insight-box { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: white; padding: 15px; border-radius: 15px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3); display: none; }
.insight-icon { font-size: 24px; opacity: 0.8; }
.insight-text h4 { font-size: 14px; margin-bottom: 2px; }
.insight-text p { font-size: 12px; opacity: 0.9; }

.history-table-container { overflow-x: auto; margin-top: 10px; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.history-table th { text-align: left; padding: 12px; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.history-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: #333; }
.history-table tr:last-child td { border-bottom: none; }
.action-btn { background: none; border: none; cursor: pointer; color: #94a3b8; margin: 0 5px; transition: color 0.2s; }
.action-btn:hover { color: var(--primary-green); }
.action-btn.delete:hover { color: #dc2626; }
.loading-cell { text-align: center; padding: 20px; }

#view-metrics > * { margin-bottom: 2.5rem; }
#view-metrics > *:last-child { margin-bottom: 0; }

/* --- MODALS --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.auth-modal { background: white; padding: 40px; border-radius: 25px; width: 90%; max-width: 400px; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); animation: slideUp 0.3s ease-out; max-height: 90vh; overflow-y: auto; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; color: #888; cursor: pointer; transition: all 0.2s; }
.close-modal:hover { color: #ef4444; transform: scale(1.1); }
.modal-title { font-size: 24px; font-weight: 700; color: #333; margin-bottom: 20px; text-align: center; }
.social-login { display: flex; gap: 15px; margin-bottom: 20px; }
.social-btn { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 10px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 600; color: #555; transition: background 0.2s; }
.social-btn:hover { background: #f5f5f5; }
.google-icon { color: #DB4437; }
.phone-icon { color: #333; }
.divider { text-align: center; margin: 20px 0; color: #888; font-size: 12px; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #eee; }
.divider::before { left: 0; }
.divider::after { right: 0; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: #666; }
.auth-footer a { color: #2daa2d; text-decoration: none; font-weight: 600; cursor: pointer; }
.forgot-wrapper { text-align: right; margin-bottom: 20px; }
.forgot-link { color: #666; font-size: 12px; text-decoration: none; }
.reset-desc { text-align: center; color: #666; font-size: 13px; margin-bottom: 20px; }
.error-msg { color: #dc3545; font-size: 12px; margin-bottom: 10px; text-align: center; display: none; }
.success-msg { color: #2daa2d; font-size: 12px; margin-bottom: 10px; text-align: center; display: none; }
.unit-toggle-container { display: flex; justify-content: center; margin-bottom: 15px; }
.unit-toggle { display: flex; background: #f0f2f5; border-radius: 20px; padding: 3px; position: relative; cursor: pointer; }
.unit-option { padding: 5px 20px; font-size: 12px; font-weight: 600; color: #777; z-index: 2; transition: color 0.3s; }
.unit-option.active { color: white; }
.toggle-slider { position: absolute; top: 3px; left: 3px; width: 50%; height: calc(100% - 6px); background: #2daa2d; border-radius: 18px; transition: transform 0.3s; z-index: 1; }
.flex-row { display: flex; gap: 10px; }
.bg-white { background: white; }
.export-btn { display: flex; align-items: center; justify-content: space-between; padding: 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; font-weight: 500; color: #333; }
.export-btn:hover { border-color: var(--primary-green); background: #f0fdf4; }
.export-icon { color: var(--primary-green); font-size: 1.2rem; }

@media (max-width: 1024px) {
    #dashboard-view { display: flex; flex-direction: column; }
    .dash-left-pane { display: none; }
    .dash-right-pane { height: 100vh; overflow-y: auto; }
    .mobile-header { display: flex; flex-shrink: 0; }
    .dashboard-container { padding: 1.5rem; }
    .metrics-grid { grid-template-columns: 1fr; }
    .hero-container { height: auto; min-height: 100vh; grid-template-columns: 1fr 1fr; padding-bottom: 50px; }
    .appointment-card { grid-column: span 2; margin: 0 auto; }
    .hero-image { display: none; }
    .logo { position: relative; left: auto; }
    .navbar { justify-content: space-between; }
   .grid-2-col, .grid-main-layout, .grid-trends, .grid-3-col, .grid-4-col { grid-template-columns: 1fr; }
    .detailed-appt-card { grid-template-columns: 1fr; }
    .appt-details-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .settings-header-card { flex-direction: column; text-align: center; gap: 1rem; }
    .settings-profile-info { flex-direction: column; }
    .settings-form-grid { grid-template-columns: 1fr; }
    .footer-actions { flex-direction: column; }
    .footer-actions button { width: 100%; }
}

@media (max-width: 768px) {
    .hero-container { display: flex; flex-direction: column; text-align: center; padding-top: 20px; }
    .navbar { flex-direction: column; gap: 15px; height: auto; }
    .nav-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .auth { justify-content: center; flex-wrap: wrap; }
    .appointment-card { width: 100%; }
}

.doctor-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 13px; color: #555; }
.doctor-checkbox input { width: 16px; height: 16px; accent-color: var(--primary-green); }
.schedule-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.schedule-row { display: grid; grid-template-columns: 50px 1fr 1fr 50px; gap: 10px; align-items: center; padding: 8px; background: #f8fafc; border-radius: 8px; }
.schedule-day { font-weight: 600; font-size: 0.9rem; color: #333; }
.schedule-time { width: 100%; padding: 5px; border: 1px solid #e2e8f0; border-radius: 5px; font-size: 0.8rem; }
.schedule-toggle { display: flex; justify-content: flex-end; }
.video-modal-content { width: 90vw; height: 80vh; max-width: 1200px; background: #000; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
#jitsi-container { width: 100%; height: 100%; }
.close-video { position: absolute; top: 15px; right: 15px; background: rgba(255, 0, 0, 0.8); color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; z-index: 100; font-weight: bold; }

/* =========================================
   ULTIMATE MOBILE RESPONSIVE FIXES
   ========================================= */

/* Tablets & Smaller Laptops */
@media screen and (max-width: 1024px) {
    /* Stack the dashboard into 1 column */
    .dashboard-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    /* Transform the sidebar into a sticky horizontal mobile nav */
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 10px 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .sidebar-logo {
        display: none; /* Hides the large logo to save space */
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        width: 100%;
        padding-bottom: 5px;
        /* Hide scrollbars for a clean app feel */
        -ms-overflow-style: none; 
        scrollbar-width: none; 
    }
    .nav-list::-webkit-scrollbar { 
        display: none; 
    }

    .nav-item { 
        margin-bottom: 0; 
        flex-shrink: 0; 
    }
    
    .nav-link {
        padding: 8px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        gap: 8px;
        border-radius: 20px;
    }

    .dashboard-main {
        height: auto;
        overflow-y: visible;
        padding: 15px;
    }
}

/* Mobile Phones */
@media screen and (max-width: 768px) {
    /* 1. Fix the "Weird Background Image Zoom" Bug */
    * {
        background-attachment: scroll !important;
    }

    /* 2. Fix the Nurse Image Overlapping */
    .dashboard-banner {
        height: auto;
        padding: 25px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .banner-content {
        max-width: 100%;
        z-index: 5;
    }

    .banner-img {
        /* We hide the image completely on mobile so it doesn't overlap text or tabs */
        display: none; 
    }

    /* 3. Fix the Layout Grids */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr; /* Keep 2 side-by-side if they fit */
        gap: 10px;
    }

    /* Landing Page Fixes */
    .hero-container {
        display: flex;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 20px;
    }

    .hero-left h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-primary, .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Make Modals fit the small screen safely */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* Very Small Phones (e.g., iPhone SE) */
@media screen and (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr; /* Force to 1 column on tiny screens */
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tab {
        flex: 1 1 45%; /* Makes the admin/doctor tabs stack neatly 2-by-2 */
        text-align: center;
        font-size: 12px;
        padding: 8px;
    }
}

/* =========================================
   HAMBURGER MENU & MOBILE DRAWER
   ========================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    flex-shrink: 0;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1c23;
    border-radius: 2px;
    transition: all 0.25s ease;
}
body.dark-mode .hamburger-btn span { background: #f9fafb; }

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.active { display: block; }

/* Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100dvh;
    background: var(--sidebar-bg);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    overflow-y: auto;
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}
.mobile-nav-close:hover { color: #fff; }

.mobile-nav-menu { flex: 1; padding: 1rem 0; }

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-list .nav-item { margin: 0; }

.mobile-nav-list .nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-list .nav-link i { width: 20px; text-align: center; }
.mobile-nav-list .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-nav-list .nav-item.active .nav-link {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
}

.mobile-nav-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.mobile-nav-logout {
    width: 100%;
    background: rgba(220,53,69,0.1);
    border: 1px solid rgba(220,53,69,0.25);
    color: #f87171;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
}
.mobile-nav-logout:hover { background: rgba(220,53,69,0.2); }

/* Booked Slots */
.booked-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.booked-slot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}
body.dark-mode .booked-slot-badge {
    background: rgba(220,38,38,0.15);
    border-color: rgba(220,38,38,0.3);
    color: #f87171;
}

@keyframes slideIn { from { opacity:0; transform:translateX(-100%); } to { opacity:1; transform:translateX(0); } }


@media screen and (max-width: 1024px) {
    /* Show hamburger on tablet/mobile */
    .hamburger-btn { display: flex; }

    /* Hide the entire left sidebar pane — navigation moves into drawer */
    .dash-left-pane { display: none !important; }

    /* Right pane takes full width */
    #dashboard-view {
        display: flex;
        flex-direction: column;
        background-attachment: scroll !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    .dash-right-pane {
        flex: 1;
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    /* Reclaim Wasted Screen Padding */
    .dash-content-area {
        padding: 1rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .dash-header-area {
        padding: 10px 1rem 0 1rem !important;
    }

    /* Force Cards & Tables to Stay Inside the Lines */
    .card {
        width: 100% !important;
        max-width: calc(100vw - 2rem) !important;
        box-sizing: border-box !important;
    }

    .history-table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Stack Complex Header Flexboxes */
    .dash-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- Beta Feedback UI --- */
.feedback-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.feedback-fab:hover {
  transform: scale(1.05);
}

.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.feedback-modal.hidden {
  display: none;
}

.feedback-content {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close-feedback {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

#beta-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

#beta-feedback-form select,
#beta-feedback-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

#submit-feedback-btn {
  background-color: #2563eb;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#feedback-status {
  margin-top: 10px;
  font-size: 0.9em;
  text-align: center;
}

/* Bell */
.notif-bell { position: relative; cursor: pointer; padding: 8px; border-radius: 8px; }
.notif-bell:hover { background: rgba(0,0,0,0.05); }
#notif-badge { position: absolute; top: 2px; right: 2px; background: #ef4444; color: #fff;
    font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; }

/* Panel */
.notif-panel { position: fixed; top: 0; right: -420px; width: 400px; max-width: 95vw;
    height: 100vh; background: #fff; box-shadow: -4px 0 30px rgba(0,0,0,0.12);
    z-index: 9999; transition: right 0.3s ease; display: flex; flex-direction: column; }
.notif-panel.open { right: 0; }
.notif-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    z-index: 9998; display: none; }
.notif-overlay.active { display: block; }
.notif-panel-header { display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid #e5e7eb; }
.notif-panel-header h3 { font-size: 1.1rem; font-weight: 700; color: #111827; margin: 0; }
.mark-read-btn { background: #f3f4f6; border: none; border-radius: 6px;
    padding: 0.4rem 0.75rem; font-size: 0.8rem; cursor: pointer; color: #374151; }
.mark-read-btn:hover { background: #e5e7eb; }

/* Items */
#notif-inbox-list { overflow-y: auto; flex: 1; padding: 0.5rem; }
.notif-item { display: flex; gap: 0.75rem; padding: 0.85rem; border-radius: 10px;
    cursor: pointer; transition: background 0.15s; align-items: flex-start; margin-bottom: 2px; }
.notif-unread { background: #f0fdf4; }
.notif-read   { background: transparent; }
.notif-item:hover { background: #f9fafb; }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 0.875rem; font-weight: 600; color: #111827; margin: 0 0 2px; }
.notif-text  { 
    font-size: 0.8rem; 
    color: #6b7280; 
    margin: 0 0 4px; 
    line-height: 1.4;
    white-space: normal; 
    word-wrap: break-word; 
}
.notif-time  { font-size: 0.72rem; color: #9ca3af; margin: 0; }
.notif-dot   { width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
    flex-shrink: 0; margin-top: 6px; }

/* ── Welcome Banner (first-time user) ─────────────────────────────── */
.welcome-banner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 16px;
    padding: 0.65rem 1.1rem;
    width: auto;
    max-width: 100%;
}
.welcome-banner-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: #22c55e;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.welcome-banner-body { flex: 1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.welcome-banner-title {
    font-size: 0.85rem; font-weight: 700;
    color: #14532d; margin: 0; white-space: nowrap;
}
.welcome-banner-sub { display: none; }
.welcome-banner-actions {
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.welcome-banner-actions .btn-action {
    width: auto;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* ── Appointment card empty state ──────────────────────────────────── */
.empty-state-appt {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1.75rem 1rem; text-align: center; gap: .5rem;
}
.empty-state-appt i { font-size: 2rem; color: #d1d5db; }
.empty-state-appt p { font-size: .875rem; color: #6b7280; margin: 0; }

/* --- Doctor Onboarding Banner --- */
.doctor-onboarding-banner { display: flex; align-items: flex-start; gap: 1.25rem; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1.5px solid #bfdbfe; border-radius: 16px; padding: 1.5rem 1.75rem; }
.doctor-onboarding-icon { flex-shrink: 0; width: 48px; height: 48px; background: #3b82f6; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.35rem; }
.doctor-onboarding-body { flex: 1; }
.doctor-onboarding-title { font-size: 1rem; font-weight: 700; color: #1e3a5f; margin: 0 0 .35rem; }
.doctor-onboarding-sub { font-size: 0.875rem; color: #1d4ed8; margin: 0 0 1rem; line-height: 1.5; }