/* ============================================================
   DPRD Dokumen Otomatis - Design System
   Premium Indonesian Government Document Automation
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Primary - Deep Navy (DPRD Official) */
    --primary-50: #e8edf5;
    --primary-100: #c5d0e6;
    --primary-200: #9eb1d4;
    --primary-300: #7792c1;
    --primary-400: #587ab3;
    --primary-500: #3963a5;
    --primary-600: #335b9d;
    --primary-700: #2c5193;
    --primary-800: #1a365d;
    --primary-900: #0f2240;

    /* Gold Accent (Ceremonial) */
    --gold-50: #fdf8eb;
    --gold-100: #faedc9;
    --gold-200: #f5d98a;
    --gold-300: #efc44b;
    --gold-400: #daa520;
    --gold-500: #c69214;
    --gold-600: #a67610;
    --gold-700: #86590c;
    --gold-800: #6b4710;
    --gold-900: #5a3b12;

    /* Success Green */
    --green-50: #ecfdf5;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;

    /* Danger Red */
    --red-50: #fef2f2;
    --red-500: #ef4444;
    --red-600: #dc2626;

    /* Purple */
    --purple-50: #faf5ff;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-800);
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* ---------- Layout ---------- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-800) 0%, var(--primary-900) 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
}

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

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}
.sidebar-brand small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.sidebar-nav {
    padding: 12px;
    flex: 1;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    margin-bottom: 2px;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--gold-400);
    border-radius: 0 4px 4px 0;
}
.nav-item .nav-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

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

.topbar {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

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

.topbar-breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-500);
}
.topbar-breadcrumb span {
    color: var(--gray-800);
    font-weight: 600;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.user-info:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
}
.user-role {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.page-content {
    padding: 32px;
}

/* ---------- Cards ---------- */
.card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.card-body {
    padding: 24px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(30%, -30%);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-50); color: var(--primary-600); }
.stat-icon.gold { background: var(--gold-50); color: var(--gold-600); }
.stat-icon.green { background: var(--green-50); color: var(--green-600); }
.stat-icon.purple { background: var(--purple-50); color: var(--purple-600); }

.stat-info h4 {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Quick Action Cards */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.action-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.action-card:hover {
    border-color: var(--primary-300);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: inherit;
}
.action-card .action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
}
.action-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.action-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.action-icon.blue-gradient {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-700));
    color: white;
}
.action-icon.gold-gradient {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
    color: white;
}
.action-icon.green-gradient {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: white;
}
.action-icon.purple-gradient {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: white;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.4);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: white;
    box-shadow: 0 2px 8px rgba(198, 146, 20, 0.3);
}
.btn-gold:hover {
    box-shadow: 0 4px 14px rgba(198, 146, 20, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: white;
}
.btn-success:hover { color: white; }

.btn-danger {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: white;
}
.btn-danger:hover { color: white; }

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-300);
    color: var(--primary-600);
}
.btn-outline:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--border-radius-sm);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-800);
    background: white;
    transition: all var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(57, 99, 165, 0.15);
}
.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-error {
    color: var(--red-500);
    font-size: 0.78rem;
    margin-top: 4px;
}

.form-hint {
    color: var(--gray-500);
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ---------- Tables ---------- */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--gray-200);
}
.table td {
    padding: 12px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.table tr:hover td {
    background: var(--gray-50);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-blue { background: var(--primary-50); color: var(--primary-700); }
.badge-gold { background: var(--gold-50); color: var(--gold-700); }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-purple { background: var(--purple-50); color: var(--purple-600); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}
.alert-success {
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: var(--red-50);
    color: var(--red-600);
    border: 1px solid #fecaca;
}

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

/* ---------- Page Header ---------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-header h1 {
    font-size: 1.5rem;
}
.page-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 2px;
}
.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    list-style: none;
    padding-left: 0;
}
.pagination li a,
.pagination li span,
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    color: var(--gray-600);
    border: none;
    background: transparent;
    text-decoration: none;
}
.pagination li a:hover,
.pagination .page-item:not(.active) .page-link:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}
.pagination li.active span,
.pagination .page-item.active .page-link,
.pagination .page-item.active span {
    background: var(--primary-600) !important;
    color: white !important;
}
.pagination li.disabled span,
.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span {
    color: var(--gray-300);
    background: transparent;
    cursor: not-allowed;
}
.pagination .page-link:focus {
    box-shadow: none;
    background: transparent;
}
.pagination svg {
    width: 16px;
    height: 16px;
}

/* ---------- Login Page ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 60%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 146, 20, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(57, 99, 165, 0.2), transparent 70%);
    bottom: -100px;
    left: -100px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}
.login-header .login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 16px;
    color: white;
}
.login-header h1 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.login-header p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-bar .form-group {
    margin-bottom: 0;
    min-width: 160px;
}

/* ---------- Detail View ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
    font-size: 0.9rem;
}
.detail-label {
    color: var(--gray-500);
    font-weight: 500;
}
.detail-value {
    color: var(--gray-800);
    font-weight: 500;
}

/* ---------- Dynamic List (Dasar Surat) ---------- */
.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dynamic-list-item {
    display: flex;
    gap: 8px;
    align-items: center;
}
.dynamic-list-item .form-control {
    flex: 1;
}
.btn-remove-item {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--red-50);
    color: var(--red-500);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.btn-remove-item:hover {
    background: var(--red-500);
    color: white;
}

/* ---------- Anggota Selector ---------- */
.anggota-selector {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    background: var(--gray-50);
}

.selected-anggota {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.selected-anggota-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.85rem;
    animation: slideDown 0.2s ease;
}
.selected-anggota-item .anggota-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.selected-anggota-item .anggota-name {
    flex: 1;
    font-weight: 500;
}
.selected-anggota-item .anggota-jabatan {
    color: var(--gray-500);
    font-size: 0.78rem;
}
.selected-anggota-item .btn-move {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}
.selected-anggota-item .btn-move:hover {
    color: var(--primary-600);
}

/* ---------- Mobile Toggle ---------- */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: block;
    }
    .page-content {
        padding: 20px 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Logout Form ---------- */
.logout-form {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}
.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    text-align: left;
}
.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.85rem; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
