:root {
  --app-bg: #f3f6fb;
  --app-surface: #ffffff;
  --app-border: #e6ebf2;
  --app-text: #1f2937;
  --app-muted: #6b7280;
  --app-primary: #2563eb;
  --app-sidebar: #0f172a;
}

html {
  font-size: 15px;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-nav-item {
  background: transparent !important;
  border-radius: 8px !important;
  margin-bottom: 4px;
  color: #d1d5db !important;
  transition: all 0.15s ease;
}

.app-nav-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.app-user-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.app-topbar {
  background: var(--app-surface);
}

.card {
  border: 1px solid var(--app-border);
  border-radius: 12px;
}

.card-header {
  border-bottom: 1px solid var(--app-border);
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.table {
  border-color: var(--app-border);
}

.table thead th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
}

.btn-primary {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.form-control,
.form-select {
  border-color: #d7dee8;
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, #0f172a 60%);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(37,99,235,.15), rgba(15,23,42,.55));
}