/* ═══════════════════════════════════════════════════════
   STUDIO ODONTOIATRICO DOTT.SSA BARBARA LOCOCO
   Admin Dashboard & Management Portal CSS
   Medical Luxury Design, Glassmorphism, Responsive
   ═══════════════════════════════════════════════════════ */

:root {
    --adm-primary:       #1a5276;
    --adm-primary-dark:  #0e3a55;
    --adm-primary-light: #2980b9;
    --adm-secondary:     #5dade2;
    --adm-accent:        #d4a745;
    --adm-bg:            #f4f6fb;
    --adm-card-bg:       #ffffff;
    --adm-sidebar-bg:    #0e3a55;
    --adm-text-dark:     #1e293b;
    --adm-text-muted:    #64748b;
    --adm-border:        #e2e8f0;
    --adm-success:       #10b981;
    --adm-warning:       #f59e0b;
    --adm-danger:        #ef4444;
    --adm-whatsapp:      #25d366;
    --adm-radius-sm:     6px;
    --adm-radius-md:     10px;
    --adm-radius-lg:     16px;
    --adm-radius-xl:     24px;
    --adm-shadow-sm:     0 1px 3px rgba(0,0,0,0.05);
    --adm-shadow-md:     0 4px 14px rgba(0,0,0,0.08);
    --adm-shadow-lg:     0 12px 30px rgba(0,0,0,0.12);
    --adm-font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --adm-font-serif:    'Playfair Display', Georgia, serif;
}

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

body {
    font-family: var(--adm-font-sans);
    background-color: var(--adm-bg);
    color: var(--adm-text-dark);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── LOGIN SCREEN ─── */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0e3a55 0%, #1a5276 50%, #2980b9 100%);
    padding: 24px;
}

.login-card {
    background: #ffffff;
    border-radius: var(--adm-radius-xl);
    padding: 44px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--adm-shadow-lg);
    text-align: center;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--adm-font-serif);
    font-size: 1.3rem;
    color: var(--adm-primary);
    margin-bottom: 24px;
}

.login-logo svg {
    color: var(--adm-secondary);
}

.login-header h2 {
    font-family: var(--adm-font-serif);
    font-size: 1.7rem;
    color: var(--adm-text-dark);
    margin-bottom: 6px;
}

.login-header p {
    color: var(--adm-text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--adm-text-dark);
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--adm-border);
    border-radius: var(--adm-radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.login-form input:focus {
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.15);
}

.login-alert {
    padding: 10px 14px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: var(--adm-radius-md);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--adm-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--adm-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
}

.login-btn:hover {
    background: var(--adm-primary-dark);
    transform: translateY(-1px);
}

.login-footer-note {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--adm-text-muted);
}

/* ─── APP LAYOUT ─── */
.admin-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 270px;
    background: var(--adm-sidebar-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-family: var(--adm-font-serif);
    font-size: 1.05rem;
    line-height: 1.2;
}

.sidebar-header small {
    display: block;
    font-size: 0.72rem;
    color: var(--adm-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding: 12px 12px 6px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--adm-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-link.active {
    background: var(--adm-primary-light);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

.sidebar-badge {
    margin-left: auto;
    background: var(--adm-accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--adm-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-text strong {
    display: block;
    font-size: 0.85rem;
}

.user-text small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-logout {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--adm-radius-sm);
    transition: all 0.2s;
}

.btn-logout:hover {
    color: var(--adm-danger);
    background: rgba(239, 68, 68, 0.15);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Top Navbar */
.topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--adm-text-dark);
}

.page-title h1 {
    font-family: var(--adm-font-serif);
    font-size: 1.45rem;
    color: var(--adm-primary-dark);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--adm-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--adm-radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: var(--adm-primary-dark);
    transform: translateY(-1px);
}

.view-site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--adm-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--adm-radius-sm);
    border: 1px solid var(--adm-border);
    transition: all 0.2s;
}

.view-site-link:hover {
    color: var(--adm-primary);
    border-color: var(--adm-primary);
}

/* Page Container */
.page-container {
    padding: 30px;
    flex: 1;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.3s var(--adm-font-sans);
}

.tab-content.active {
    display: block;
}

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

/* ─── STATS CARDS ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--adm-card-bg);
    border-radius: var(--adm-radius-lg);
    padding: 22px;
    border: 1px solid var(--adm-border);
    box-shadow: var(--adm-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--adm-shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--adm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }

.stat-info h4 {
    font-size: 0.8rem;
    color: var(--adm-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--adm-text-dark);
    line-height: 1.2;
}

/* ─── CARDS & TABLES ─── */
.card {
    background: var(--adm-card-bg);
    border-radius: var(--adm-radius-lg);
    border: 1px solid var(--adm-border);
    box-shadow: var(--adm-shadow-sm);
    margin-bottom: 28px;
    overflow: hidden;
}

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

.card-header h3 {
    font-family: var(--adm-font-serif);
    font-size: 1.15rem;
    color: var(--adm-primary-dark);
}

.card-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    padding: 8px 14px 8px 36px;
    border: 1.5px solid var(--adm-border);
    border-radius: var(--adm-radius-md);
    font-size: 0.85rem;
    outline: none;
    width: 220px;
    transition: all 0.2s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center;
}

.search-input:focus {
    border-color: var(--adm-primary);
    width: 260px;
}

.filter-select {
    padding: 8px 12px;
    border: 1.5px solid var(--adm-border);
    border-radius: var(--adm-radius-md);
    font-size: 0.85rem;
    outline: none;
    background: #ffffff;
    color: var(--adm-text-dark);
    cursor: pointer;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    padding: 14px 20px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--adm-text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--adm-border);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--adm-border);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: #f8fafc;
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-gdpr { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Action Buttons */
.action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: var(--adm-radius-sm);
    border: 1px solid var(--adm-border);
    background: #ffffff;
    color: var(--adm-text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-action:hover {
    border-color: var(--adm-primary);
    color: var(--adm-primary);
    background: #f0f7fc;
}

.btn-action.whatsapp {
    color: var(--adm-whatsapp);
}

.btn-action.whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.btn-action.email {
    color: #0284c7;
}

.btn-action.email:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-action.danger:hover {
    background: var(--adm-danger);
    color: #ffffff;
    border-color: var(--adm-danger);
}

/* ─── MODALS ─── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--adm-radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--adm-shadow-lg);
    animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
    font-family: var(--adm-font-serif);
    font-size: 1.25rem;
    color: var(--adm-primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--adm-text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal Form Controls */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--adm-text-dark);
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--adm-border);
    border-radius: var(--adm-radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

/* WhatsApp Message Preview Box */
.whatsapp-preview-box {
    background: #e5ddd5;
    background-image: radial-gradient(#d4ccc3 1px, transparent 1px);
    background-size: 16px 16px;
    padding: 16px;
    border-radius: var(--adm-radius-md);
    margin: 16px 0;
}

.whatsapp-bubble {
    background: #dcf8c6;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111b21;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Availability Manager UI */
.workday-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: var(--adm-radius-md);
    border: 1px solid var(--adm-border);
    margin-bottom: 12px;
}

.workday-name {
    font-weight: 600;
    width: 120px;
}

.workday-slots {
    flex: 1;
    font-size: 0.82rem;
    color: var(--adm-text-muted);
}

/* Enhanced Doctor Availability Manager */
.workday-card {
    background: #ffffff;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--adm-shadow-sm);
    overflow: hidden;
    transition: all 0.2s;
}
.workday-card:hover {
    border-color: #cbd5e1;
}
.workday-card.disabled {
    background: #f8fafc;
    opacity: 0.85;
}
.workday-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--adm-border);
}
.workday-card-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--adm-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.workday-card-body {
    padding: 18px 20px;
}
.slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 36px;
}
.slot-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #bae6fd;
    transition: all 0.15s;
}
.slot-chip:hover {
    background: #bae6fd;
}
.slot-chip-delete {
    background: none;
    border: none;
    color: #0284c7;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slot-chip-delete:hover {
    color: #ef4444;
}
.workday-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--adm-border);
}
.add-slot-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.add-slot-input {
    padding: 6px 10px;
    border: 1.5px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    font-size: 0.85rem;
    width: 100px;
}
.btn-slot-preset {
    font-size: 0.78rem;
    padding: 5px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--adm-radius-sm);
    color: var(--adm-text-dark);
    cursor: pointer;
    font-weight: 500;
}
.btn-slot-preset:hover {
    background: #e2e8f0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

/* Patient Live Autocomplete */
.patient-search-container {
    position: relative;
    width: 100%;
}
.patient-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.patient-search-input-wrap .search-icon {
    position: absolute;
    left: 12px;
    font-size: 1rem;
    color: #0284c7;
    pointer-events: none;
}
.patient-search-input-wrap input {
    width: 100%;
    padding: 10px 38px 10px 36px;
    background: #ffffff;
    border: 1.5px solid #0284c7;
    border-radius: var(--adm-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--adm-text-dark);
    outline: none;
    transition: all 0.2s;
}
.patient-search-input-wrap input:focus {
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
    border-color: #0369a1;
}
.patient-search-input-wrap .btn-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s;
}
.patient-search-input-wrap .btn-clear-search:hover {
    background: #cbd5e1;
    color: #0f172a;
}
.patient-autocomplete-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1.5px solid #0284c7;
    border-radius: var(--adm-radius-sm);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1100;
}
.patient-autocomplete-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.15s;
}
.patient-autocomplete-item:last-child {
    border-bottom: none;
}
.patient-autocomplete-item:hover,
.patient-autocomplete-item.active {
    background: #f0f9ff;
}
.patient-autocomplete-item .patient-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.patient-autocomplete-item .patient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.patient-autocomplete-item .patient-details strong {
    font-size: 0.9rem;
    color: #0f172a;
    display: block;
}
.patient-autocomplete-item .patient-details small {
    font-size: 0.78rem;
    color: #64748b;
    display: block;
}
.patient-autocomplete-item .patient-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1e40af;
    white-space: nowrap;
}
.patient-autocomplete-empty {
    padding: 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { position: fixed; height: 100vh; transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-container { padding: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .topbar { padding: 0 16px; }
}
