:root {
  --app-bg: #f5f7fb;
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-active: #ffffff;
  --card-border: #e5e7eb;
  --brand: #1f3a8a;
  --text-primary: #111827;
  --text-muted: #6b7280;
  --topbar-bg: #ffffff;
  --content-bg: #f5f7fb;
}

[data-theme="dark"] {
  --app-bg: #0b1220;
  --sidebar-bg: #0b1220;
  --sidebar-text: #94a3b8;
  --sidebar-active: #ffffff;
  --card-border: #1f2937;
  --brand: #60a5fa;
  --text-primary: #e5e7eb;
  --text-muted: #94a3b8;
  --topbar-bg: #0f172a;
  --content-bg: #0b1220;
}

html, body { height: 100%; }
body { background: var(--app-bg); font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text-primary); }

.app-wrapper { min-height: 100vh; display: flex; }
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .3px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar .nav-link {
  color: var(--sidebar-text);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active { background: rgba(255,255,255,.08); color: var(--sidebar-active); }

.main-content { flex: 1; display: flex; flex-direction: column; background: var(--content-bg); }
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-title { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); }

.content-container { padding: 24px; }

.card { border: 1px solid var(--card-border); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05); background: #fff; }
[data-theme="dark"] .card { background: #0f172a; }

.table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.table td { vertical-align: middle; color: var(--text-primary); }

.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { max-width: 420px; width: 100%; }

.badge-status { font-size: .75rem; }

.btn-theme {
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  background: transparent;
}

.landing-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.landing-wrapper .container { max-width: 1100px; }
