:root {
  --brand: #0d6efd;
  --brand-dark: #0a4fb0;
  --bg-soft: #f4f6fb;
}

body {
  background: var(--bg-soft);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

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

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f2350, #16305f);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .5rem .25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 1rem;
}

.sidebar-nav .nav-link {
  color: rgba(255,255,255,.75);
  border-radius: .5rem;
  padding: .6rem .75rem;
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
}

.sidebar-nav .nav-link i { width: 1.1rem; text-align: center; }

.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background: var(--brand);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.content {
  flex: 1;
  padding: 1.75rem 2rem;
  min-width: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.stat-card {
  background: #fff;
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 35, 80, .06);
  border: 1px solid rgba(15,35,80,.05);
}

.stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 700;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.card-panel {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2px 10px rgba(15, 35, 80, .06);
  border: 1px solid rgba(15,35,80,.05);
}

.table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b7280;
  border-bottom-width: 1px;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2350, #1c4fa0);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .2s; }
  .sidebar.open { left: 0; }
  .content { padding: 1rem; }
}
