
:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --accent: #16a34a;
  --accent-2: #22d3ee;
  --danger: #ef4444;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); }

a { color: var(--accent-2); text-decoration: none; }
a.btn, button.btn { background: var(--accent); color: white; padding: 8px 14px; border-radius: 12px; border: none; cursor: pointer; }
a.btn:hover, button.btn:hover { opacity: 0.9; }

.container { width: min(1200px, 95%); margin: 20px auto; }

.app-header { display:flex; align-items:center; justify-content: space-between; padding:12px 16px; background: var(--panel); border-bottom: 1px solid #1f2937; }
.app-header .brand { display:flex; gap:12px; align-items:center; }
.app-header img { width: 48px; height: 48px; object-fit: contain; }
.brand-text h1 { margin:0; font-size: 18px; }
.brand-text small { color: var(--muted); }

.layout { display:flex; gap: 16px; }
.sidebar { width: 260px; background: #0b1220; border: 1px solid #1f2937; border-radius: 16px; padding: 12px; height: fit-content; position: sticky; top: 12px; }
.sidebar h3 { margin-top:0; }
.menu a { display:block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.menu a.active, .menu a:hover { background: #111827; }

.card { background: var(--panel); border:1px solid #1f2937; border-radius: 16px; padding: 16px; }
.card h2 { margin-top:0; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #1f2937; }
.table th { text-align: left; color: var(--muted); }

.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row .field { display:flex; flex-direction: column; gap:6px; }
input, select, textarea { background: #0b1220; border: 1px solid #1f2937; padding: 10px; border-radius: 10px; color: var(--text); }
label { color: var(--muted); font-size: 14px; }
.help { color: var(--muted); font-size: 13px; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #1f2937; color: #a7f3d0; }
.status-pending { color: #fbbf24; }
.status-approved { color: #34d399; }
.status-rejected { color: #f87171; }

.banner { background: linear-gradient(90deg, rgba(20,83,45,0.5), rgba(8,145,178,0.5)); padding: 16px; border-radius: 16px; margin-bottom: 16px; }

.spinner { width: 48px; height: 48px; border: 5px solid #1f2937; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 16px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-footer { text-align:center; padding: 20px; color: var(--muted); }
.print-actions { display:flex; gap:8px; margin-bottom: 10px; }
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; position: relative; }
}
