/* assets/css/app.css */
:root {
  --sidebar-width: 250px;
  --navbar-height: 56px;
  --primary: #1a56db;
  --primary-dark: #1241a0;
}

/* ─── Layout ─── */
body {
  background: #f1f5f9;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  padding-top: var(--navbar-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height));
  background: #1e293b;
  color: #cbd5e1;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  overflow-y: auto;
  z-index: 1030;
  transition: transform 0.25s ease;
}

.sidebar .nav-link {
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 2px;
  transition: all 0.15s;
}

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

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

.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  padding: 12px 12px 4px;
  font-weight: 700;
}

/* ─── Main Content ─── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 24px;
  min-height: calc(100vh - var(--navbar-height) - 60px);
}

/* ─── Avatar ─── */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* ─── Cards ─── */
.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  transition: transform 0.15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

/* ─── Page Header ─── */
.page-header {
  background: #fff;
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.page-header h4 { margin: 0; font-weight: 700; color: #1e293b; }

/* ─── Tables ─── */
.table-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.table thead th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 700;
}

/* ─── Login Page ─── */
.login-page {
  background: linear-gradient(135deg, #1a56db 0%, #0e3a8a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-card .brand-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  margin: 0 auto 20px;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}

/* ─── Utilities ─── */
.bg-primary-soft { background: rgba(26,86,219,.1); color: var(--primary); }
.bg-success-soft { background: rgba(16,185,129,.1); color: #065f46; }
.bg-warning-soft { background: rgba(245,158,11,.1); color: #92400e; }
.bg-danger-soft  { background: rgba(239,68,68,.1);  color: #991b1b; }
.bg-info-soft    { background: rgba(59,130,246,.1); color: #1e40af; }

.fw-600 { font-weight: 600; }
.text-sm { font-size: 13px; }
.border-radius-10 { border-radius: 10px; }

/* Sidebar header */
.sidebar-header { background: rgba(255,255,255,0.05); }
