:root {
    --primary: #2563eb; --primary-hover: #1d4ed8; --success: #10b981; --warning: #f59e0b;
    --danger: #ef4444; --info: #06b6d4; --dark: #0f172a; --border: #e2e8f0; --bg: #f8fafc;
    --text: #1e293b; --text-muted: #64748b; --radius: 8px; --shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--dark); color: #f1f5f9; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid #334155; }
.brand-logo { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), #38bdf8); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 16px; }
.brand-text strong { font-size: 16px; color: #fff; }
.brand-text span { font-size: 12px; color: #94a3b8; }
.sidebar-version-badge { padding: 8px 20px; background: #1e293b; font-size: 11px; color: #cbd5e1; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #334155; }
.sidebar-nav { padding: 16px 12px; flex-grow: 1; overflow-y: auto; }
.nav-section-title { font-size: 10px; font-weight: 700; color: #64748b; padding: 12px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #cbd5e1; text-decoration: none; border-radius: 6px; margin-bottom: 4px; font-weight: 500; }
.nav-item:hover { background: #334155; color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item.nav-disabled { opacity: 0.55; cursor: not-allowed; }
.badge-mini { margin-left: auto; font-size: 10px; background: #334155; padding: 2px 6px; border-radius: 4px; color: #94a3b8; }
.sidebar-footer { padding: 16px; border-top: 1px solid #334155; background: #0b1120; display: flex; flex-direction: column; gap: 10px; }
.user-info-box { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #3b82f6; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.user-name { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.user-role { font-size: 11px; color: #94a3b8; }
.btn-logout { font-size: 12px; color: #f87171; text-decoration: none; padding: 6px; border-radius: 4px; background: rgba(239, 68, 68, 0.1); text-align: center; }
.admin-main { flex-grow: 1; display: flex; flex-direction: column; background: var(--bg); }
.admin-navbar { height: 60px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.page-title { font-size: 18px; font-weight: 600; }
.navbar-right { display: flex; align-items: center; gap: 12px; }
.env-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #dcfce7; color: #166534; }
.user-chip { font-size: 13px; color: var(--text-muted); }
.content-container { padding: 24px; max-width: 1300px; margin: 0 auto; width: 100%; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.kpi-card { background: #fff; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.kpi-title { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.kpi-value { font-size: 26px; font-weight: 700; margin: 8px 0 4px; }
.kpi-sub { font-size: 12px; color: var(--text-muted); }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 20px; }
.dashboard-header, .page-header-row { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 6px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: #f1f5f9; }
.btn-success { background: var(--success); color: #fff; }
.btn-block { width: 100%; }
.badge { display: inline-block; padding: 3px 8px; font-size: 11px; font-weight: 600; border-radius: 4px; }
.badge-lg { padding: 6px 12px; font-size: 13px; }
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #cffafe; color: #155e75; }
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #f8fafc; padding: 10px 14px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table-bordered td, .table-bordered th { border: 1px solid var(--border); }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.auth-body { background: #0f172a; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-container { width: 100%; max-width: 420px; padding: 20px; }
.auth-card { background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2); }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), #38bdf8); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 20px; margin-bottom: 12px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 11px; color: #94a3b8; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .p-5 { padding: 40px; }
.text-center { text-align: center; } .text-muted { color: var(--text-muted); }
.filter-form .filter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 180px; } .flex-2 { flex: 2; min-width: 260px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.version-item { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
.version-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.version-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.version-title-group { display: flex; align-items: center; gap: 10px; }
.version-tag { background: var(--dark); color: #fff; font-weight: 700; padding: 4px 8px; border-radius: 4px; font-size: 13px; }
.version-name { font-size: 16px; font-weight: 700; }
.version-date { font-size: 12px; color: var(--text-muted); }
.path-display { background: #f1f5f9; padding: 12px 16px; border-radius: 6px; margin-top: 10px; border-left: 4px solid var(--primary); }
.path-display code { font-family: monospace; font-size: 13px; color: #0f172a; }
