:root {
  --sidebar-width: 260px;
  --sidebar-collapsed: 78px;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0f4c81;
  --primary-2: #1668a8;
  --border: #e5e7eb;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #eef2f6 0%, var(--bg) 220px);
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width);
  background: #0b1f33;
  color: #dbe7f3;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  z-index: 1040;
  transition: width .2s ease;
}
.sidebar .brand {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand span { display:block; font-size:.75rem; font-weight:500; color:#8ea8c1; margin-top:.2rem; }
.sidebar .nav-link {
  display:flex; align-items:center; gap:.7rem;
  color:#c9d7e6; padding:.7rem 1.15rem; border-left:3px solid transparent;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
  background: rgba(255,255,255,.06); color:#fff; border-left-color:#4ea1e1;
}
.sidebar .nav-link i { width: 18px; text-align:center; }
.main-wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}
.topbar {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.25rem;
  display:flex; justify-content:space-between; align-items:center;
  position: sticky; top:0; z-index: 100;
}
.content { padding: 1.25rem; }
.stat-card, .panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.stat-card { padding: 1rem 1.1rem; height: 100%; }
.stat-card .label { color: var(--muted); font-size: .82rem; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; margin-top: .2rem; }
.panel-card { padding: 1rem 1.15rem; margin-bottom: 1rem; }
.panel-title { font-size: 1rem; font-weight: 700; margin-bottom: .85rem; }
.table thead th { white-space: nowrap; font-size: .82rem; color: #4b5563; }
.badge-soft {
  display:inline-block; padding:.28rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600;
  background:#eef2ff; color:#3730a3;
}
.badge-soft.success { background:#dcfce7; color:#166534; }
.badge-soft.warning { background:#ffedd5; color:#9a3412; }
.badge-soft.danger { background:#fee2e2; color:#991b1b; }
.badge-soft.muted { background:#f3f4f6; color:#4b5563; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.filters-bar .form-control, .filters-bar .form-select { border-radius: 10px; }
.progress-live { height: 10px; border-radius: 999px; }
.login-wrap {
  min-height: 100vh; display:flex; align-items:center; justify-content:center;
  background: radial-gradient(circle at top left, #d7e7f7, #eef2f6 45%, #f8fafc);
  padding: 1rem;
}
.login-card {
  width: 100%; max-width: 420px; background:#fff; border-radius: 18px;
  box-shadow: var(--shadow); border:1px solid var(--border); padding: 1.75rem;
}
.login-card h1 { font-size: 1.35rem; margin-bottom: .25rem; }
.login-card p { color: var(--muted); margin-bottom: 1.25rem; }
.sidebar-toggle { display:none; border:0; background:#0b1f33; color:#fff; border-radius:8px; padding:.35rem .6rem; }
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-width); }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .sidebar-toggle { display:inline-block; }
}
.chart-box { position: relative; height: 260px; }
.list-activity li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.list-activity li:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.company-hero { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
