:root {
    --bg: #f4f6fb;
    --bg-card: #ffffff;
    --bg-sidebar: #0c1222;
    --bg-sidebar-hover: rgba(255,255,255,0.05);
    --bg-sidebar-active: rgba(99,179,237,0.12);
    --text: #1a202c;
    --text-secondary: #718096;
    --text-sidebar: #8a94a6;
    --text-sidebar-active: #63b3ed;
    --border: #e8ecf2;
    --primary: #3182ce;
    --primary-dark: #2b6cb0;
    --primary-light: #ebf4ff;
    --success: #38a169;
    --success-light: #c6f6d5;
    --warning: #d69e2e;
    --warning-light: #fefcbf;
    --danger: #e53e3e;
    --danger-light: #fed7d7;
    --accent: #6b46c1;
    --accent-light: #e9d8fd;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.08);
    --sidebar-width: 264px;
    --topbar-height: 68px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==================== LOGIN PAGE ==================== */
.login-page { background: transparent; }
.login-scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0c1222 0%, #1a2744 50%, #0c1222 100%);
    position: relative;
    overflow: hidden;
}
.login-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 12s ease-in-out infinite;
}
.login-bg-orb-1 { width: 400px; height: 400px; background: #3182ce; top: -10%; left: -5%; animation-delay: 0s; }
.login-bg-orb-2 { width: 350px; height: 350px; background: #6b46c1; bottom: -10%; right: -5%; animation-delay: -4s; }
.login-bg-orb-3 { width: 250px; height: 250px; background: #38a169; top: 50%; left: 50%; animation-delay: -8s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 920px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    animation: loginAppear 0.6s ease;
}
@keyframes loginAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-left {
    flex: 1;
    background: linear-gradient(160deg, rgba(49,130,206,0.15) 0%, rgba(107,70,193,0.1) 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.login-logo { width: 56px; height: 56px; color: #63b3ed; margin-bottom: 24px; }
.login-logo svg { width: 100%; height: 100%; }
.login-brand-title { font-size: 2rem; font-weight: 800; color: #f7fafc; letter-spacing: -1px; line-height: 1.15; }
.login-brand-tagline { font-size: 0.88rem; color: #8a94a6; margin-top: 10px; line-height: 1.6; }
.login-features { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.login-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #a0aec0;
}
.login-feature-item svg { color: #63b3ed; flex-shrink: 0; }

.login-right {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.login-form-area { width: 100%; max-width: 340px; }
.login-title { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.login-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-top: 6px; margin-bottom: 28px; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}
.input-icon-wrap input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: var(--font);
    color: var(--text);
    background: #f8fafc;
    transition: all 0.2s;
}
.input-icon-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49,130,206,0.12);
    background: white;
}
.login-btn {
    width: 100%;
    padding: 13px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.login-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(49,130,206,0.3); }
.login-footer-text { text-align: center; margin-top: 28px; font-size: 0.75rem; color: var(--text-secondary); }

@media (max-width: 768px) {
    .login-left { display: none; }
    .login-container { max-width: 420px; }
    .login-right { padding: 36px 28px; }
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand-icon { width: 42px; height: 42px; color: #63b3ed; flex-shrink: 0; }
.brand-icon svg { width: 100%; height: 100%; }
.brand-name { font-size: 1.15rem; font-weight: 800; color: #f1f5f9; display: block; letter-spacing: -0.5px; }
.brand-sub { font-size: 0.68rem; color: var(--text-sidebar); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

.nav-menu {
    list-style: none;
    padding: 6px 10px;
    flex: 1;
    overflow-y: hidden;
}
.nav-section-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(138,148,166,0.5);
    padding: 10px 10px 4px;
    font-weight: 700;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    color: var(--text-sidebar);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 1px;
}
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; }
.nav-link:hover { background: var(--bg-sidebar-hover); color: #cbd5e0; }
.nav-link:hover svg { opacity: 1; }
.nav-link.active { background: var(--bg-sidebar-active); color: var(--text-sidebar-active); font-weight: 600; }
.nav-link.active svg { opacity: 1; stroke: var(--text-sidebar-active); }

.sidebar-footer {
    padding: 16px 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3182ce, #6b46c1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 0.82rem; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 0.7rem; color: var(--text-sidebar); text-transform: capitalize; }
.logout-btn {
    color: var(--text-sidebar);
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    text-decoration: none;
}
.logout-btn:hover { color: var(--danger); background: rgba(229,62,62,0.1); }

/* ==================== MAIN CONTENT ==================== */
.main-content { margin-left: var(--sidebar-width); min-height: 100vh; }

.top-bar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }
.page-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; flex: 1; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.date-display { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }

.content-area { padding: 28px 32px; }

/* ==================== STAT CARDS ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.stats-row-sm { margin-bottom: 20px; }
.stats-row-sm .stat-card { padding: 18px 20px; }
.stats-row-sm .stat-number { font-size: 1.2rem; }
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}
.stat-primary::before { background: var(--primary); }
.stat-success::before { background: var(--success); }
.stat-accent::before { background: var(--accent); }
.stat-warning::before { background: var(--warning); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-primary .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-success .stat-icon { background: var(--success-light); color: var(--success); }
.stat-accent .stat-icon { background: var(--accent-light); color: var(--accent); }
.stat-warning .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-number { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); line-height: 1.2; }
.stat-label { display: block; font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; margin-top: 3px; }

/* ==================== CHARTS ==================== */
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.charts-row-3col { grid-template-columns: 1fr 1fr 1fr; }
.chart-card, .table-card, .report-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.3px;
}
.card-title svg { color: var(--primary); }
.chart-body { padding: 22px; }

.bar-item { margin-bottom: 14px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bar-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.bar-value { font-size: 0.75rem; color: var(--text-secondary); font-family: var(--font-mono); }
.bar-track { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); min-width: 4px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-section h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-secondary); margin-bottom: 10px; font-weight: 700; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 0.85rem; font-weight: 500; }
.info-badge { background: var(--primary-light); color: var(--primary-dark); padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-mono); }
.info-badge.accent { background: var(--success-light); color: #276749; }

/* ==================== TABLES ==================== */
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; }
.table-header .card-title { padding-left: 0; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    font-weight: 700;
    background: #f8fafc;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.row-lunas { background: rgba(56,161,105,0.03); }
.row-lunas:hover { background: rgba(56,161,105,0.06) !important; }

.text-mono { font-family: var(--font-mono); font-size: 0.8rem; }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; padding: 32px !important; color: var(--text-secondary); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge-paket { background: var(--primary-light); color: var(--primary-dark); }
.badge-tempo { background: var(--warning-light); color: #975a16; }
.badge-lunas { background: var(--success-light); color: #276749; }
.badge-belum { background: var(--danger-light); color: #9b2c2c; }
.badge-admin { background: var(--accent-light); color: #553c9a; }
.badge-kolektor { background: var(--primary-light); color: var(--primary-dark); }

/* ==================== ACTION BUTTONS ==================== */
.action-btns { display: flex; gap: 5px; }
.btn-icon {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-edit:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-delete:hover { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }
.btn-pay:hover { background: var(--success-light); color: var(--success); border-color: var(--success); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #2f855a; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; background: var(--primary-light); color: var(--primary-dark); border-radius: 8px; }
.btn-sm:hover { background: var(--primary); color: white; }

/* ==================== PAGE ACTIONS ==================== */
.page-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.search-filters { flex: 1; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.search-box input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font);
    background: var(--bg-card);
    transition: border-color 0.2s;
}
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(49,130,206,0.1); }
.filter-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    min-width: 140px;
}
.filter-select:focus { outline: none; border-color: var(--primary); }

.result-info { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px; font-weight: 500; }

/* ==================== PAGINATION ==================== */
.pagination { display: flex; justify-content: center; gap: 5px; padding: 18px; }
.page-btn {
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}
.page-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ==================== FORMS ==================== */
.form-page { max-width: 800px; margin: 0 auto; }
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.form-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #ebf4ff 0%, #e9d8fd 100%);
}
.form-header h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; }
.form-header p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 4px; }

.crm-form { padding: 28px 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: 0.2px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: var(--font);
    color: var(--text);
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
    background: white;
}
.form-group textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ==================== INVOICE ASSIGNMENT ==================== */
.assignment-section { margin-top: 28px; }
.assignment-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.assignment-title svg { color: var(--primary); }
.assignment-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }
.assignment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.assignment-card {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: border-color 0.2s;
}
.assignment-card:hover { border-color: var(--primary); }
.assignment-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.assignment-count { font-size: 0.75rem; color: var(--text-secondary); font-family: var(--font-mono); }

/* ==================== PAYMENT DETAIL ==================== */
.payment-detail-card {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
}
.payment-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.payment-row:last-child { border-bottom: none; }
.payment-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.payment-value { font-size: 0.88rem; font-weight: 600; }

/* ==================== REPORT GRID ==================== */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-card.full-width { grid-column: 1 / -1; }
.row-total { background: #f8fafc; }
.row-total td { font-weight: 700; border-top: 2px solid var(--border); }
.mini-bar { display: inline-block; width: 60px; height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-bar div { height: 100%; background: var(--primary); border-radius: 99px; }

/* ==================== ALERTS ==================== */
.alert {
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.88rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}
.alert-success { background: var(--success-light); color: #276749; border: 1px solid #9ae6b4; }
.alert-danger { background: var(--danger-light); color: #9b2c2c; border: 1px solid #feb2b2; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .charts-row, .charts-row-3col { grid-template-columns: 1fr; }
    .report-grid { grid-template-columns: 1fr; }
    .assignment-grid { grid-template-columns: 1fr; }
}

/* Responsive utility classes */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { display: block; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .content-area { padding: 20px 16px; }
    .top-bar { padding: 0 16px; }
    .stats-row { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; }
    .search-box { min-width: 100%; }
    .page-actions { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 1.1rem; }
    .crm-form { padding: 20px; }
    .form-header { padding: 20px; }
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
}
