/* SIREL - SIAP RAIL Inspired Design v5 (UNIFIED SIDEBAR LEFT) */
/* Font: Plus Jakarta Sans (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --primary-deep: #0f172a;
    --accent-gold: #f59e0b;
    --accent-gold-dark: #d97706;

    /* Light Theme */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border: #e2e8f0;
    --table-header: #f8fafc;
    --table-header-text: #334155;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --blue: #3b82f6;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.1);

    --sidebar-bg: #0f172a;
    --sidebar-text: rgba(255,255,255,0.85);
    --sidebar-text-hover: #fff;
    --sidebar-text-muted: rgba(255,255,255,0.5);
    --sidebar-width: 260px;
    --sidebar-collapsed: 60px;
}

[data-theme="dark"] {
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-input: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334151;
    --table-header: #1e293b;
    --table-header-text: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.4);
    --sidebar-bg: #020617;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ================= SIDEBAR (LEFT - ALL PAGES) ================= */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .logo-text,
.sidebar.collapsed nav a span,
.sidebar.collapsed nav .nav-section,
.sidebar.collapsed .theme-toggle .theme-label,
.sidebar.collapsed .logout-btn span { display: none; }
.sidebar.collapsed .logo { justify-content: center; padding: 16px 0; }
.sidebar.collapsed nav a { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .theme-toggle,
.sidebar.collapsed .logout-btn { justify-content: center; padding: 10px 0; margin: 0 8px; width: calc(100% - 16px); }

.sidebar .logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar .logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #2563eb, #f59e0b);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar .logo-icon i { font-size: 20px; color: white; }
.sidebar .logo-text { font-size: 18px; font-weight: 700; white-space: nowrap; color: #fff; }

.sidebar nav { padding: 16px 0; flex: 1; overflow-y: auto; }
.sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: all 0.15s; white-space: nowrap;
}
.sidebar nav a:hover, .sidebar nav a.active {
    background: rgba(255,255,255,0.12);
    color: var(--sidebar-text-hover);
}
.sidebar nav a i { width: 20px; font-size: 16px; color: var(--sidebar-text-muted); flex-shrink: 0; }
.sidebar nav a.active i { color: var(--sidebar-text-hover); }
.sidebar nav .nav-section {
    padding: 16px 20px 8px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    color: var(--sidebar-text-muted);
    letter-spacing: 0.5px;
}

.sidebar .theme-toggle {
    margin: 0 20px 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 13px; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    transition: all 0.15s; white-space: nowrap;
}
.sidebar .theme-toggle:hover { background: rgba(255,255,255,0.15); color: var(--sidebar-text-hover); }
.sidebar .theme-toggle i { font-size: 16px; }

.sidebar .logout-btn {
    margin: 0 20px 16px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border: none; border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 13px; font-family: inherit;
    cursor: pointer; width: calc(100% - 40px);
    text-align: center; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.15s; white-space: nowrap;
}
.sidebar .logout-btn:hover { background: rgba(239,68,68,0.3); color: #fff; }

/* ================= MAIN CONTENT ================= */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Top bar */
.top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.top-bar-left { display: flex; align-items: center; gap: 12px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.page-title { font-size: 18px; font-weight: 700; color: var(--text-main); }

.user-menu { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #2563eb, #f59e0b);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.user-details { display: flex; flex-direction: column; line-height: 1.2; }
.user-details .name { font-weight: 700; font-size: 13px; color: var(--text-main); }
.user-details .role { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.main-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 28px;
}

/* ================= PAGE HEADERS ================= */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; margin-bottom: 4px; }
.page-header .breadcrumb { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ================= CARDS ================= */
.card {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 15px 50px -10px rgba(0,0,0,0.15); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 16px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.card-title i { color: var(--primary-light); font-size: 18px; }

/* ================= STATS GRID ================= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon i { font-size: 22px; }
.stat-card.primary .stat-icon { background: rgba(37,99,235,0.12); color: var(--primary); }
.stat-card.warning .stat-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-card.success .stat-icon { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-card.purple .stat-icon { background: rgba(139,92,246,0.12); color: var(--purple); }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-main); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ================= MENU CARDS ================= */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.menu-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 28px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}
.menu-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(37,99,235,0.2);
}
.menu-card .menu-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.menu-card .menu-icon i { font-size: 26px; }
.menu-card.arsip .menu-icon { background: rgba(37,99,235,0.12); color: var(--primary); }
.menu-card.jadwal .menu-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.menu-card.admin .menu-icon { background: rgba(16,185,129,0.12); color: var(--success); }
.menu-card.purple .menu-icon { background: rgba(139,92,246,0.12); color: var(--purple); }
.menu-title { font-size: 17px; font-weight: 700; color: var(--text-main); }
.menu-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.menu-arrow {
    margin-top: auto;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    transition: all 0.2s ease;
}
.menu-card:hover .menu-arrow { color: var(--primary); gap: 10px; }
.menu-card:hover .menu-arrow i { transform: translateX(4px); }

/* ================= FORMS ================= */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
    background: var(--bg-card);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px; font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.3); }
.btn-secondary { background: var(--bg-card); color: var(--text-main); border: 2px solid var(--border); }
.btn-secondary:hover { background: var(--bg-input); border-color: var(--primary); }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn i { font-size: 14px; }

/* ================= TABLE ================= */
.table-wrapper {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: auto;
    max-height: 60vh;
}
.table-wrapper::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrapper::-webkit-scrollbar-track { background: var(--bg-body); border-radius: 10px; }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    vertical-align: middle;
}
tbody tr { transition: background-color 0.2s ease; }
tbody tr:hover { background-color: var(--bg-input); }
tbody tr:last-child td { border-bottom: none; }
th {
    background: var(--table-header);
    font-weight: 700;
    color: var(--table-header-text);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--border);
}

/* ================= BADGES ================= */
.badge {
    display: inline-flex; align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-progress { background: rgba(59,130,246,0.12); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.badge-help { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-done { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-pending { background: rgba(107,114,128,0.12); color: var(--text-muted); border: 1px solid rgba(107,114,128,0.2); }

/* ================= TAGS ================= */
.tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
    border-radius: 8px;
    font-size: 12px; font-weight: 600;
    margin-right: 6px; margin-bottom: 4px;
}

/* ================= LOGIN PAGE ================= */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1a73e8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 100%; max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative; z-index: 10;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}
.login-logo-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #2563eb, #1e40af, #f59e0b);
    border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}
.login-logo-icon i { font-size: 36px; color: white; }
.login-title {
    font-size: 26px; font-weight: 800;
    background: linear-gradient(to right, #1e3a8a 0%, #2563eb 20%, #f59e0b 40%, #fcd34d 50%, #f59e0b 60%, #2563eb 80%, #1e3a8a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineText 6s linear infinite;
}
@keyframes shineText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.login-subtitle { font-size: 12px; color: #666; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; }

.input-group { position: relative; margin-bottom: 18px; }
.input-group label { display: block; margin-bottom: 8px; color: #374151; font-weight: 700; font-size: 13px; }
.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; font-size: 16px;
}
.input-wrapper input {
    width: 100%; padding: 14px 14px 14px 46px;
    border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 15px; font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
}
.input-wrapper input:focus {
    outline: none; border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.input-wrapper input:focus + .input-icon { color: var(--primary); }
.toggle-password {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #9ca3af; padding: 8px;
}
.toggle-password:hover { color: var(--primary); }
.error-message {
    background: #fee2e2; border-left: 4px solid #ef4444;
    color: #991b1b; padding: 12px 16px; border-radius: 8px;
    margin-bottom: 20px; font-size: 14px;
    display: flex; align-items: center; gap: 10px;
    animation: shake 0.5s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ================= TOAST ================= */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; }
.toast {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: var(--text-main);
    border-left: 4px solid;
    animation: toastIn 0.3s ease;
    min-width: 280px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--primary); }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ================= LOADING ================= */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= MODAL ================= */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--bg-card);
    border-radius: 20px; padding: 28px;
    width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--text-main); }
.modal-close { background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-muted); font-size: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ================= FILE UPLOAD ================= */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-input);
}
.file-upload-zone:hover, .file-upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(37,99,235,0.04);
}
.file-upload-zone i { font-size: 44px; color: var(--border); margin-bottom: 12px; }
.file-upload-zone:hover i { color: var(--primary); }
.file-upload-zone p { font-size: 14px; color: var(--text-muted); }
.file-upload-zone .hint { font-size: 12px; margin-top: 4px; }
.file-list { margin-top: 16px; }
.file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}
.file-item:hover { background: var(--border); }
.file-item .file-name { display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.file-item .file-name i { color: var(--primary); }
.file-item .file-size { color: var(--text-muted); font-size: 12px; }
.file-item button { background: none; border: none; cursor: pointer; color: var(--danger); padding: 4px; }
.file-item button:hover { color: #dc2626; }

/* ================= EMPTY STATE ================= */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 56px; color: var(--border); margin-bottom: 16px; }

/* ================= PAGINATION ================= */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination button { padding: 10px 16px; border: 2px solid var(--border); background: var(--bg-card); border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-main); }
.pagination button:hover { background: var(--bg-input); border-color: var(--primary); }
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ================= FILTER BAR ================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: center; }
.filter-bar input, .filter-bar select { padding: 10px 14px; border: 2px solid var(--border); border-radius: 10px; font-size: 13px; font-family: inherit; background: var(--bg-card); color: var(--text-main); }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--primary); }

/* ================= PAGE TRANSITION ================= */
.page-transition { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
