body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f5fb;
}

/* ── Sidebar ─────────────────────────────── */
#sidebar {
  width: 260px;
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid #e6e8f0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid #e6e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 34px;
  height: 34px;
  background: #696cff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.sidebar-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #566a7f;
  letter-spacing: 0.3px;
}

.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a5adb9;
  padding: 16px 24px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: #566a7f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-link:hover {
  background: #f4f5fb;
  color: #696cff;
}

.sidebar-link.active {
  background: #f0f0ff;
  color: #696cff;
  border-left-color: #696cff;
  font-weight: 600;
}

.sidebar-link i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* ── Top Navbar ──────────────────────────── */
#topnav {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e6e8f0;
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
}

.topnav-title {
  font-size: 15px;
  font-weight: 600;
  color: #566a7f;
  flex: 1;
}

/* ── Main content ────────────────────────── */
#main-content {
  margin-left: 260px;
  margin-top: 64px;
  padding: 28px 24px;
  min-height: calc(100vh - 64px);
}

/* ── Cards ───────────────────────────────── */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e6e8f0;
  border-radius: 10px 10px 0 0 !important;
  padding: 16px 20px;
}

/* ── Tables ─────────────────────────────── */
.table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a8d93;
  border-bottom: 1px solid #e6e8f0;
  padding: 12px 16px;
  white-space: nowrap;
}

.table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #566a7f;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: #fafafa;
}

/* ── Buttons ───────────────────────────────── */
.btn-primary {
  background: #696cff;
  border-color: #696cff;
}

.btn-primary:hover {
  background: #5a5ce8;
  border-color: #5a5ce8;
}

.btn-label-secondary {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #566a7f;
}

.btn-label-secondary:hover {
  background: #e0e0e0;
  color: #566a7f;
}

/* ── Stat cards ────────────────────────────── */
.stat-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bg-label-primary {
  background: #e9e9ff;
  color: #696cff;
}

.bg-label-success {
  background: #e1f8e8;
  color: #28c76f;
}

.bg-label-warning {
  background: #fff4e0;
  color: #ff9f43;
}

.bg-label-info {
  background: #dcf2fd;
  color: #00bad1;
}

.bg-label-danger {
  background: #fde8e8;
  color: #ea5455;
}

/* ── Dropdown menu ───────────────────────── */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px;
}

.dropdown-item {
  border-radius: 6px;
  font-size: 14px;
  padding: 8px 14px;
}

.guest-page {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.14), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.login-card {
  border: none;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(20, 32, 79, 0.12);
}

.login-brand {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
}

.login-card .card-body {
  padding: 2rem;
}

.login-card .form-control:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 0.15rem rgba(79, 70, 229, 0.15);
}

.btn-primary {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #4338ca;
  border-color: #4338ca;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 991px) {
  #sidebar {
    transform: translateX(-260px);
    transition: transform 0.3s;
  }

  #sidebar.open {
    transform: translateX(0);
  }

  #topnav {
    left: 0;
  }

  #main-content {
    margin-left: 0;
  }
}
