/* ─── Variables ─────────────────────────────────────── */
:root {
    --blue: #2A7DE1;
    --blue-dark: #1d5fb5;
    --blue-light: #e8f1fc;
    --green: #2BB673;
    --green-dark: #1f8a56;
    --green-light: #e6f7ef;
    --sidebar-bg: #111827;
    --sidebar-width: 260px;
    --header-h: 64px;
    --body-bg: #f0f4f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .2s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d2240 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(42,125,225,.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(43,182,115,.12) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    border-radius: 50%;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img { width: 160px; height: auto; }

.login-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}

.login-card .form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.login-card .form-control {
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 14px;
    padding: 0 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.login-card .form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(42,125,225,.12);
    outline: none;
}

.login-card .input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.login-card .input-group-text {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    border: 1.5px solid var(--border);
    border-left: none;
    background: #f8fafc;
    cursor: pointer;
    color: var(--text-muted);
}

.btn-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(42,125,225,.35);
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42,125,225,.45);
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.cp-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-brand img { width: 120px; height: auto; }

.sidebar-brand-text {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    padding: 20px 20px 8px;
}

.sidebar-nav { list-style: none; padding: 8px 12px; flex: 1; }

.sidebar-nav li { margin-bottom: 2px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.6);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
    color: white;
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--blue) 0%, #1a5ab8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(42,125,225,.3);
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-nav a .nav-badge {
    margin-left: auto;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}

.sidebar-user:hover { background: rgba(255,255,255,.09); }

.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255,255,255,.4);
}

/* ─── Main Content ────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Top Header ──────────────────────────────────── */
.topbar {
    height: var(--header-h);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 500;
    gap: 16px;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.topbar-title small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-top: -2px;
}

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.topbar-date {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--body-bg);
    padding: 6px 12px;
    border-radius: 6px;
}

/* ─── Page Body ───────────────────────────────────── */
.page-body { padding: 28px; flex: 1; }

/* ─── Flash Messages ──────────────────────────────── */
.flash-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn .3s ease;
}

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

.flash-success { background: var(--green-light); color: var(--green-dark); border: 1px solid #b7ebd1; }
.flash-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.flash-info    { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #b9d4f5; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD STATS
═══════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

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

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.blue  { background: var(--blue-light);  color: var(--blue); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.purple{ background: #f5f0ff; color: #7c3aed; }
.stat-icon.orange{ background: #fff7ed; color: #ea580c; }
.stat-icon.pink  { background: #fdf2f8; color: #db2777; }
.stat-icon.teal  { background: #f0fdfa; color: #0d9488; }
.stat-icon.red   { background: #fef2f2; color: #dc2626; }

.stat-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════ */
.cp-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.cp-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cp-card-header h5 {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    min-width: 140px;
}

.cp-card-body { padding: 22px; }

/* ═══════════════════════════════════════════════════════
   TOOLBAR (search + add button)
═══════════════════════════════════════════════════════ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    background: white;
    transition: border-color var(--transition);
    outline: none;
}

.search-box input:focus { border-color: var(--blue); }

.search-box .search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
}

.toolbar-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 2px 8px rgba(42,125,225,.3);
}

.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 4px 14px rgba(42,125,225,.4);
    transform: translateY(-1px);
    color: white;
}

.btn-success {
    background: var(--green);
    color: white;
    box-shadow: 0 2px 8px rgba(43,182,115,.3);
}

.btn-success:hover {
    background: var(--green-dark);
    box-shadow: 0 4px 14px rgba(43,182,115,.4);
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--body-bg);
    border-color: #cbd5e1;
}

.btn-danger { background: #ef4444; color: white; box-shadow: 0 2px 8px rgba(239,68,68,.25); }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); color: white; }

.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }

.btn-icon {
    width: 32px; height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius) var(--radius) 0 0;
}

.cp-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.cp-table thead th {
    background: #f8fafc;
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.cp-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

.cp-table tbody tr:hover { background: #fafbfd; }
.cp-table tbody tr:last-child td { border-bottom: none; }

.cp-table .actions { display: flex; gap: 6px; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.badge-blue    { background: var(--blue-light);  color: var(--blue); }
.badge-green   { background: var(--green-light); color: var(--green-dark); }
.badge-red     { background: #fef2f2; color: #dc2626; }
.badge-gray    { background: #f1f5f9; color: var(--text-muted); }
.badge-orange  { background: #fff7ed; color: #ea580c; }
.badge-purple  { background: #f5f0ff; color: #7c3aed; }

/* Avatar */
.doctor-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--blue-light);
}

.doctor-avatar-placeholder {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 12px; opacity: .3; display: block; }
.empty-state p { font-size: 14px; }

/* ═══════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .2s ease;
}

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

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: slideUp .25s ease;
}

.modal-box.modal-lg { max-width: 780px; }

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

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

.modal-header h5 { font-size: 16px; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover { color: var(--text-main); }

.modal-body { padding: 24px; }

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

/* ═══════════════════════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-label .req { color: #ef4444; margin-left: 2px; }

.form-control, .form-select {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-main);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(42,125,225,.1);
}

textarea.form-control {
    height: auto;
    padding: 10px 13px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════
   IMPORT DROP ZONE
═══════════════════════════════════════════════════════ */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--blue);
    background: var(--blue-light);
}

.drop-zone i { font-size: 40px; color: var(--blue); margin-bottom: 12px; display: block; }
.drop-zone p { color: var(--text-muted); font-size: 14px; }
.drop-zone small { color: var(--text-light); font-size: 12px; }
.drop-zone input[type="file"] { display: none; }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.table-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #fafbfd;
}

.table-footer-info { font-size: 12.5px; color: var(--text-muted); }

.pagination { display: flex; gap: 4px; list-style: none; }

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px;
    font-size: 13px;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    background: white;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.pagination .page-item .page-link:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-item.active .page-link { background: var(--blue); border-color: var(--blue); color: white; }

/* ═══════════════════════════════════════════════════════
   SETTINGS PAGE
═══════════════════════════════════════════════════════ */
.settings-section {
    max-width: 540px;
}

.settings-section + .settings-section { margin-top: 28px; }

.section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i { color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   PATIENT CARD INFO
═══════════════════════════════════════════════════════ */
.patient-id-badge {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --sidebar-width: 260px; }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open { transform: translateX(0); }

    .main-content { margin-left: 0; }

    .topbar-toggle { display: flex; }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 999;
    }

    .sidebar-overlay.open { display: block; }

    .page-body { padding: 16px; }

    .form-row, .form-row-3 { grid-template-columns: 1fr; }

    .login-card { padding: 32px 24px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box { max-width: 100%; }
    .toolbar-actions { margin-left: 0; }

    .table-wrap {
        margin: 0 -1px;
        scrollbar-width: thin;
    }
    .table-wrap::-webkit-scrollbar { height: 6px; }
    .table-wrap::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ─── Confirm Dialog ──────────────────────────────── */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-overlay.open { display: flex; }

.confirm-box {
    background: white;
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.confirm-icon {
    width: 60px; height: 60px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #ef4444;
}

.confirm-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.confirm-text { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ─── Photo Preview ───────────────────────────────── */
.photo-preview {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blue-light);
    display: none;
}

.photo-preview.show { display: block; }

/* ─── Loading spinner ─────────────────────────────── */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* WhatsApp Reminders */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition);
}
.tab-link:hover {
    border-color: rgba(42,125,225,.28);
    color: var(--blue);
}
.tab-link.active {
    background: var(--blue-light);
    border-color: rgba(42,125,225,.28);
    color: var(--blue-dark);
}
.stat-card > div:last-child { min-width: 0; }
