/* ═══════════════════════════════════════════════════
   SIDACHEERS — Custom Admin Panel
   Design: Clean White
═══════════════════════════════════════════════════ */

/* ── RESET & ROOT ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sidebar-w: 260px;
    --sidebar-collapsed-w: 0px;
    --topbar-h: 60px;

    --bg: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --primary-light: #EFF6FF;
    --primary-subtle: #DBEAFE;

    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --info: #06B6D4;
    --info-light: #ECFEFF;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all .2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

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

/* ── SIDEBAR ───────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 20px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.sidebar-brand-icon {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}
.sidebar-brand-text {
    line-height: 1.25;
}
.sidebar-brand-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.sidebar-brand-text span {
    font-size: 11px;
    color: var(--text-muted);
}

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

.sidebar-group-label {
    padding: 16px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}
.sidebar-link:hover {
    background: var(--bg);
    color: var(--text);
}
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}
.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.sidebar-user-info {
    flex: 1;
    min-width: 0;
}
.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── MAIN CONTENT ──────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .3s ease;
}

/* ── TOPBAR ─────────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-secondary);
    font-size: 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.topbar-toggle:hover {
    background: var(--bg);
    color: var(--text);
}
.topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}
.topbar-link:hover {
    background: var(--bg);
    color: var(--text);
}
.topbar-link.danger { color: var(--danger); }
.topbar-link.danger:hover { background: var(--danger-light); }

/* ── PAGE CONTENT ──────────────────────────────── */
.page-content {
    flex: 1;
    padding: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.page-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ── CARDS ──────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 {
    font-size: 15px;
    font-weight: 600;
}
.card-body {
    padding: 20px;
}

/* ── STAT CARDS ─────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.stat-info {}
.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}
.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.btn-success:hover { background: #059669; border-color: #059669; color: white; }
.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.btn-danger:hover { background: #DC2626; border-color: #DC2626; color: white; }
.btn-outline {
    background: var(--white);
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg);
    color: var(--text);
    border-color: #CBD5E1;
}
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}
.btn-icon {
    padding: 6px 8px;
}

/* ── TABLES ────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--bg);
}
.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #FAFBFD;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.td-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ── FORMS ──────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.5;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-control::placeholder {
    color: var(--text-muted);
}
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}
.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ── BADGES ─────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-default { background: var(--bg); color: var(--text-secondary); }

/* ── ALERTS ─────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: var(--success-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger { background: var(--danger-light); color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: var(--warning-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: var(--info-light); color: #155E75; border: 1px solid #A5F3FC; }

/* ── IMAGE COLUMN ──────────────────────────────── */
.img-thumb {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
}
.img-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ── EMPTY STATE ───────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}
.empty-state p {
    font-size: 14px;
}

/* ── SEARCH/FILTER BAR ─────────────────────────── */
.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.search-input {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.search-input input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}
.search-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

/* ── PAGINATION ────────────────────────────────── */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 8px;
}
.pagination-wrap .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
}
.pagination-wrap .pagination li a,
.pagination-wrap .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}
.pagination-wrap .pagination li a:hover {
    background: var(--bg);
    border-color: #CBD5E1;
}
.pagination-wrap .pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pagination-wrap .pagination li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── DELETE MODAL ──────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show {
    display: flex;
}
.modal-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.modal-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.modal-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ── LOGIN PAGE ────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 20px;
}
.login-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}
.login-brand {
    text-align: center;
    margin-bottom: 32px;
}
.login-brand-icon {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
}
.login-brand h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.login-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.login-form .form-group {
    margin-bottom: 16px;
}
.login-form .btn-primary {
    width: 100%;
    padding: 10px;
    justify-content: center;
    font-size: 14px;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.login-remember input[type="checkbox"] {
    accent-color: var(--primary);
}

/* ── FILE UPLOAD ───────────────────────────────── */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-upload i { font-size: 24px; color: var(--text-muted); margin-bottom: 8px; }
.file-upload p { font-size: 12px; color: var(--text-muted); }
.file-preview {
    margin-top: 10px;
}
.file-preview img {
    max-width: 120px;
    max-height: 80px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .topbar-toggle {
        display: block;
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 45;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* ── COOPERATIVE STYLE REDESIGN STYLES ──────────────── */

/* Brand Logo */
.sidebar-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand-text span {
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Topbar Center Support Section */
.topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.supported-by-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 10px;
}
.supp-text {
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.supp-logos {
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo-bsi {
    color: #005F5F;
    font-weight: 800;
    letter-spacing: -0.05em;
}
.logo-divider {
    color: var(--border);
}
.logo-ciptakita {
    color: #1E3A8A;
    font-weight: 800;
}

/* Topbar User Profile */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}
.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}
.topbar-user-info strong {
    font-size: 12px;
    color: var(--text);
    font-weight: 700;
}
.topbar-user-info span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 2px solid #DBEAFE;
}
.topbar-web-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}
.topbar-web-link:hover {
    background: var(--bg);
    color: var(--text);
}
.topbar-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.topbar-logout-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* 3 Main Metric Cards */
.main-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.metric-card {
    border-radius: var(--radius-xl);
    color: white;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border: none;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.metric-blue {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}
.metric-green {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}
.metric-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.metric-info {
    display: flex;
    flex-direction: column;
}
.metric-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 4px;
}
.metric-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.metric-value .unit {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    margin-left: 2px;
}
.metric-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(4px);
}

.metric-card-body {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 14px;
}
.metric-subtitle {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.metric-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.metric-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.95;
}
.metric-list li .bullet {
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    opacity: 0.75;
    flex-shrink: 0;
}
.metric-list li strong {
    font-weight: 700;
}

/* Secondary Metrics Grid */
.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-top: 24px;
    margin-bottom: 12px;
}
.secondary-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.sub-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.sub-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}
.sub-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.sub-stat-icon.text-pink { color: #EC4899; background: #FDF2F8; }
.sub-stat-icon.text-cyan { color: #06B6D4; background: #ECFEFF; }
.sub-stat-icon.text-indigo { color: #6366F1; background: #EEF2FF; }
.sub-stat-icon.text-purple { color: #8B5CF6; background: #F5F3FF; }

.sub-stat-info {
    display: flex;
    flex-direction: column;
}
.sub-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.sub-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── RESPONSIVE OVERRIDES ───────────────────────────── */
@media (max-width: 1024px) {
    .main-metrics-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .secondary-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .topbar-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .secondary-metrics-grid {
        grid-template-columns: 1fr;
    }
    .topbar {
        padding: 0 16px;
    }
    .login-card {
        padding: 24px;
    }
}
