/* ============================================
   Doctor Booking System - Premium Stylesheet
   ============================================ */

/* ── Google Fonts ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
    --bg-primary:    #0a0e1a;
    --bg-secondary:  #111827;
    --bg-card:       rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass-border:  rgba(255, 255, 255, 0.08);
    --glass-shadow:  0 8px 32px rgba(0, 0, 0, 0.4);
    
    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    --accent-blue:    #3b82f6;
    --accent-purple:  #8b5cf6;
    --accent-cyan:    #06b6d4;
    --accent-green:   #10b981;
    --accent-orange:  #f59e0b;
    --accent-red:     #ef4444;
    --accent-pink:    #ec4899;

    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-4: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background animated gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(2deg); }
}

/* ── Navbar ────────────────────────────────── */
.navbar {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.navbar-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.navbar-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--glass-border);
}

.navbar-links a.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
}

/* ── Container ─────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

.container-admin {
    max-width: 1450px;
}

/* ── Page Header ───────────────────────────── */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* ── Glass Card ────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card-static:hover {
    transform: none;
}

/* ── Doctor Cards ──────────────────────────── */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.doctor-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover::before,
.doctor-card.selected::before {
    opacity: 1;
}

.doctor-card.selected {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.1);
}

.doctor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

img.doctor-avatar {
    object-fit: cover;
}

.doctor-card:hover .doctor-avatar {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.doctor-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.doctor-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.doctor-spec {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.doctor-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.doctor-room {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.doctor-queue {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Booking Form ──────────────────────────── */
.booking-section {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-3);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--gradient-4);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Token Display (Success Modal) ─────────── */
.token-result {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.5s ease;
}

.token-result.show {
    display: block;
}

.token-number-display {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 1rem 0;
    animation: pulse 2s ease-in-out infinite;
}

.token-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
}

.token-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.token-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.token-detail-row span:first-child {
    color: var(--text-muted);
}

.token-detail-row span:last-child {
    font-weight: 600;
}

/* ── Room Display Screen ───────────────────── */
.display-screen {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.display-current-token {
    text-align: center;
    margin-bottom: 2rem;
}

.display-token-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.display-token-number {
    font-family: var(--font-mono);
    font-size: 10rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: tokenPulse 3s ease-in-out infinite;
}

.display-patient-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.display-doctor-info {
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-top: 0.25rem;
    font-weight: 500;
}

.display-waiting-list {
    width: 100%;
    max-width: 600px;
}

.display-waiting-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.waiting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.waiting-item:first-child {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.08);
}

.waiting-item-token {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-blue);
}

.waiting-item-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ── Display Stats ─────────────────────────── */
.display-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.display-stat {
    text-align: center;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    min-width: 120px;
}

.display-stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.display-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Admin Panel ───────────────────────────── */
.admin-grid {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-current {
    text-align: center;
    padding: 2rem;
}

.admin-current-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-current-number {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.admin-current-name {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ── Queue Table ───────────────────────────── */
#queueList {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.queue-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.queue-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.queue-table tbody tr {
    background: var(--bg-card);
    transition: all 0.3s;
}

.queue-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.queue-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

.queue-table tbody td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.queue-table tbody td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Status Badges ─────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-waiting {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-serving {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: servingPulse 2s ease-in-out infinite;
}

.badge-completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-skipped {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-absent {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

/* ── Doctor Select for Admin/Display ──────── */
.doctor-select-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.doctor-select-bar label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.doctor-select-bar select {
    flex: 1;
    min-width: 200px;
}

/* ── No Data State ─────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.empty-state-sub {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* ── Toast Notification ────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: rgba(16, 185, 129, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.toast-info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

/* ── Live Indicator ────────────────────────── */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: liveBlink 1.5s ease-in-out infinite;
}

/* ── Page Loader Overlay ───────────────────── */
.page-loader-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0e1a; /* Matches var(--bg-primary) */
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    pointer-events: all;
}

.page-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loader Container */
.loader-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Outer Glow */
.loader-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: loaderGlowPulse 2s ease-in-out infinite alternate;
}

/* Spinning Ring */
.loader-ring {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.03);
    border-top: 3px solid var(--accent-blue);
    border-right: 3px solid var(--accent-cyan);
    animation: loaderSpin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    z-index: 2;
}

/* Inner Logo Box */
.loader-logo {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: loaderLogoPulse 1.8s ease-in-out infinite alternate;
}

/* Loader Typography */
.loader-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.loader-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-top: -0.5rem;
}

/* Sleek Progress Bar */
.loader-progress-bar {
    width: 140px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 0.5rem;
}

.loader-progress-line {
    position: absolute;
    height: 100%;
    width: 40%;
    background: var(--gradient-2);
    border-radius: 10px;
    animation: loaderProgressMove 1.5s infinite ease-in-out;
}

/* Keyframes */
@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderLogoPulse {
    0% { transform: translate(-50%, -50%) scale(0.92); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
    100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5); }
}

@keyframes loaderGlowPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes loaderProgressMove {
    0% { left: -40%; }
    50% { left: 100%; width: 40%; }
    100% { left: 100%; width: 0%; }
}

/* ── Animations ────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.8; }
}

@keyframes tokenPulse {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.02); 
        filter: brightness(1.15);
    }
}

@keyframes servingPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* ── UI Components ─────────────────────────── */
.section-title {
    font-size: 1.75rem;
}

.section-subtitle {
    font-size: 0.9rem;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.05em;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.selected-doctor-info {
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.selected-doctor-info .info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.selected-doctor-info .info-value {
    font-weight: 600;
    color: var(--accent-blue);
    word-break: break-word;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 1rem 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
    }

    .navbar-brand {
        justify-content: center;
        width: 100%;
    }

    .navbar-title {
        font-size: 1rem;
    }

    .navbar-links {
        width: 100%;
        justify-content: center;
    }

    .navbar-links a {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }

    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.85rem; }
    .step-title { font-size: 0.9rem; }

    .container {
        padding: 1.25rem 1rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .display-token-number {
        font-size: 6rem;
    }

    .token-number-display {
        font-size: 3.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .doctor-select-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .display-stats {
        gap: 0.75rem;
    }

    .display-stat {
        padding: 0.75rem 1.25rem;
        min-width: 90px;
    }

    .display-stat-value {
        font-size: 1.5rem;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }

    .queue-table {
        font-size: 0.8rem;
    }

    .queue-table thead th,
    .queue-table tbody td {
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.35rem; }
    .step-header { flex-direction: column; align-items: flex-start; }
    .date-badge { width: 100%; justify-content: center; }
    
    .token-detail-row {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.75rem 0;
    }
    
    .hero-section {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .display-token-number {
        font-size: 4.5rem;
    }

    .display-patient-name {
        font-size: 1.3rem;
    }

    .admin-current-number {
        font-size: 3.5rem;
    }

    .doctor-avatar {
        width: 48px;
        height: 48px;
    }
}

/* ── Utility ───────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.hidden { display: none !important; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Display page doctor selector ──────────── */
.display-doctor-select {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}



/* ── Hero Section (Modern Premium Style) ──────────────── */
.hero-section {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(10, 14, 26, 0.8), rgba(17, 24, 39, 0.95));
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* CSS Dot Grid Background Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
    filter: blur(60px);
    z-index: 2;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8) rotate(0deg); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.2) rotate(15deg); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.35;
    letter-spacing: normal;
    padding: 0.2em 0;
    background: linear-gradient(120deg, #ffffff 30%, #c7d2fe 45%, #ffffff 50%, #818cf8 60%, #38bdf8 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    animation: textShineSweep 6s linear infinite;
}

@keyframes textShineSweep {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: blinkStatus 1.5s ease-in-out infinite alternate;
}

@keyframes blinkStatus {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

@keyframes badgeFloat {
    0% { transform: translateY(0); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
    100% { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15); }
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(30px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Animated Background Blobs ── */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.3);
    top: -10%;
    left: 15%;
    animation: driftBlob1 20s infinite alternate ease-in-out;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(6, 182, 212, 0.25);
    bottom: -15%;
    right: 15%;
    animation: driftBlob2 25s infinite alternate ease-in-out;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: rgba(236, 72, 153, 0.2);
    top: 25%;
    right: 5%;
    animation: driftBlob3 18s infinite alternate ease-in-out;
}

@keyframes driftBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 30px) scale(1.15); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

@keyframes driftBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-45px, -60px) scale(0.85); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes driftBlob3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 40px) scale(1.2); }
    100% { transform: translate(40px, -30px) scale(0.9); }
}

/* ── Split Screen Layouts ──────────────────── */
.display-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    align-items: stretch;
}

.display-grid.split-1 {
    grid-template-columns: 1fr;
    max-width: 950px;
}

.display-grid.split-2 {
    grid-template-columns: repeat(2, 1fr);
}

.display-grid.split-3 {
    grid-template-columns: repeat(3, 1fr);
}

.display-grid.split-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
}

@media (max-width: 1024px) {
    .display-grid.split-2,
    .display-grid.split-3,
    .display-grid.split-4 {
        grid-template-columns: 1fr;
    }
}

.display-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.display-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.display-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.display-panel.panel-1::before { background: var(--gradient-1); }
.display-panel.panel-2::before { background: var(--gradient-2); }
.display-panel.panel-3::before { background: var(--gradient-3); }
.display-panel.panel-4::before { background: var(--gradient-4); }

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
}

.panel-doc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.panel-doc-info {
    flex: 1;
    min-width: 0;
}

.panel-doc-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-doc-spec {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-room-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    white-space: nowrap;
}

.panel-serving-box {
    text-align: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.panel-serving-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.panel-serving-num {
    font-family: var(--font-mono);
    font-size: 4.5rem;
    font-weight: 950;
    line-height: 1.1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.25rem 0;
}

.panel-1 .panel-serving-num { background: var(--gradient-1); -webkit-background-clip: text; }
.panel-2 .panel-serving-num { background: var(--gradient-2); -webkit-background-clip: text; }
.panel-3 .panel-serving-num { background: var(--gradient-3); -webkit-background-clip: text; }
.panel-4 .panel-serving-num { background: var(--gradient-4); -webkit-background-clip: text; }

.panel-patient-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.panel-patient-phone {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-family: var(--font-mono);
    font-weight: 600;
    margin-top: 0.15rem;
}

.panel-stats-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.panel-stat-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.panel-stat-pill span {
    font-family: var(--font-mono);
    font-weight: 700;
}

.panel-lists-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.panel-queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.panel-queue-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    border-left: 2px solid var(--accent-blue);
    padding-left: 0.4rem;
}

.panel-2 .panel-queue-title { border-color: var(--accent-cyan); }
.panel-3 .panel-queue-title { border-color: var(--accent-green); }
.panel-4 .panel-queue-title { border-color: var(--accent-orange); }

.panel-queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.panel-queue-token {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-blue);
}

.panel-2 .panel-queue-token { color: var(--accent-cyan); }
.panel-3 .panel-queue-token { color: var(--accent-green); }
.panel-4 .panel-queue-token { color: var(--accent-orange); }

.panel-queue-patient {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.panel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    text-align: center;
    color: var(--text-muted);
    gap: 0.5rem;
    padding: 2rem;
}

.panel-empty-icon {
    font-size: 2.5rem;
}

.panel-empty-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.split-3 .panel-serving-num,
.split-4 .panel-serving-num {
    font-size: 3.5rem;
}

.split-3 .display-panel,
.split-4 .display-panel {
    padding: 1rem;
    min-height: 420px;
}

/* ── Fullscreen Button Float ───────────────── */
.fullscreen-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ── Fullscreen Tweaks for TV Display ──────── */
:fullscreen .navbar { display: none !important; }
:-webkit-full-screen .navbar { display: none !important; }
:-ms-fullscreen .navbar { display: none !important; }

:fullscreen .container { display: none !important; }
:-webkit-full-screen .container { display: none !important; }
:-ms-fullscreen .container { display: none !important; }

:fullscreen .display-screen {
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 1rem !important;
    justify-content: center !important;
}
:-webkit-full-screen .display-screen {
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 1rem !important;
    justify-content: center !important;
}
:-ms-fullscreen .display-screen {
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 1rem !important;
    justify-content: center !important;
}

:fullscreen .display-grid {
    height: 100% !important;
    max-height: 100vh !important;
    padding: 0 !important;
}
:-webkit-full-screen .display-grid {
    height: 100% !important;
    max-height: 100vh !important;
    padding: 0 !important;
}
:-ms-fullscreen .display-grid {
    height: 100% !important;
    max-height: 100vh !important;
    padding: 0 !important;
}

:fullscreen .display-panel {
    min-height: 0 !important;
    height: 100% !important;
}
:-webkit-full-screen .display-panel {
    min-height: 0 !important;
    height: 100% !important;
}
:-ms-fullscreen .display-panel {
    min-height: 0 !important;
    height: 100% !important;
}

/* ── Split Panel Doctor Info Badge ─────────── */
.panel-doc-badge-line {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin: 0.5rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
    width: 100%;
}

.display-stats.panel-stats {
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
    width: 100%;
    flex-wrap: nowrap !important;
}

.display-stats.panel-stats .display-stat {
    padding: 0.6rem 0.85rem !important;
    min-width: 0 !important;
    flex: 1;
    border-radius: var(--radius-md) !important;
}

.display-stats.panel-stats .display-stat-value {
    font-size: 1.5rem !important;
}

/* Adjustments for dense panels in split layouts */
.split-3 .panel-doc-badge-line,
.split-4 .panel-doc-badge-line {
    padding-bottom: 0.5rem;
    margin: 0.25rem 0;
}

.split-3 .display-stats.panel-stats,
.split-4 .display-stats.panel-stats {
    gap: 0.4rem !important;
    margin-top: 0.25rem !important;
}

.split-3 .display-stats.panel-stats .display-stat,
.split-4 .display-stats.panel-stats .display-stat {
    padding: 0.4rem 0.6rem !important;
}

.split-3 .panel-serving-num,
.split-4 .panel-serving-num {
    font-size: 4.5rem !important;
}

.split-3 .panel-patient-name,
.split-4 .panel-patient-name {
    font-size: 1.5rem !important;
}

@media (max-width: 640px) {
    .panel-lists-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}



