:root {
  --sidebar-bg: #1f2937;
  --sidebar-active: #2563eb;
  --content-bg: #f3f4f6;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--content-bg); }

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { padding: 0 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand-mark { font-size: 22px; font-weight: 700; color: #fff; display: block; }
.brand small { color: #9ca3af; }

.sidebar .nav-link {
  color: #d1d5db;
  border-radius: 0;
  padding: 10px 20px;
  font-size: 14px;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar .nav-link.active { background: var(--sidebar-active); color: #fff; }

.sidebar-footer { margin-top: auto; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-footer .me { font-size: 13px; color: #d1d5db; margin-bottom: 8px; }

.content { flex: 1; padding: 24px 32px; min-width: 0; }

.page-header { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.page-header h2 { margin: 0; font-size: 22px; font-weight: 600; }

.stat-tile { background: #fff; border-radius: 8px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); border: 1px solid #e5e7eb; }
.stat-label { font-size: 13px; color: #6b7280; }
.stat-value { font-size: 28px; font-weight: 700; margin: 6px 0 8px; color: #111827; }
.stat-link { font-size: 13px; }
.recent-list { list-style: none; padding-left: 0; margin: 0; }
.recent-list li { padding: 4px 0; border-bottom: 1px dashed #e5e7eb; font-size: 13px; }
.recent-list li:last-child { border: 0; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar .form-control, .filter-bar .form-select { max-width: 220px; }

.form-card { background: #fff; border-radius: 8px; padding: 20px 24px; border: 1px solid #e5e7eb; }
.required { color: #ef4444; }

.flash { animation: flash-fade 0.3s ease-in; }
@keyframes flash-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg,#0f172a,#1e293b); }
.login-card { background: #fff; border-radius: 10px; padding: 32px 36px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-card .brand { font-size: 26px; font-weight: 800; color: #2563eb; margin: 0; }

table.table { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.table th { font-size: 13px; color: #6b7280; font-weight: 600; }

.card { border: 1px solid #e5e7eb; border-radius: 8px; }
.card-header { background: #f9fafb; font-weight: 600; }
