.admin-layout {
  margin: 0;
  background: #f4f6fa;
  min-height: 100vh;
  display: block;
}

.admin-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #1f2a44 0%, #2c3a5e 100%);
  color: #fff;
  padding: 24px 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 0 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand i {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.sidebar-nav { padding: 14px 12px; }

.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  margin-bottom: 4px;
  text-decoration: none;
  transition: all 0.18s;
  font-size: 14px;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.sidebar-link.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(200,16,46,0.4);
}
.sidebar-link i { width: 18px; }

.sidebar-section {
  padding: 18px 14px 8px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.4);
}

.admin-main {
  margin-left: 260px;
  min-height: 100vh;
}

.admin-topbar {
  background: #fff;
  padding: 16px 28px;
  border-bottom: 1px solid #e6e8ee;
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.topbar-title {
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}
.topbar-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex; gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.topbar-breadcrumb li::after {
  content: '/';
  margin-left: 6px;
  color: #ccc;
}
.topbar-breadcrumb li:last-child::after { content: ''; }
.topbar-breadcrumb li a { color: var(--primary); text-decoration: none; }

.user-toggle {
  display: inline-flex; align-items: center;
  background: #f4f6fa;
  border: 1px solid #e6e8ee;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.admin-content {
  padding: 24px 28px;
}

.dashboard-stat {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid #e6e8ee;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dashboard-stat h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.dashboard-stat span {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dashboard-stat .stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.stat-primary { border-left-color: #0d6efd; }
.stat-primary .stat-icon { background: #e7f1ff; color: #0d6efd; }
.stat-success { border-left-color: #198754; }
.stat-success .stat-icon { background: #e8f5e9; color: #198754; }
.stat-info { border-left-color: #0dcaf0; }
.stat-info .stat-icon { background: #e0f7fa; color: #055160; }
.stat-warning { border-left-color: #fd7e14; }
.stat-warning .stat-icon { background: #fff3e0; color: #e65100; }

.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(200,16,46,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(240,181,29,0.15), transparent 50%),
    linear-gradient(135deg, #1f2a44, #2c3a5e);
}
.login-bg { display: none; }
.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  padding: 40px;
  max-width: 440px;
  width: 100%;
}
.login-brand { text-align: center; margin-bottom: 30px; }
.login-brand i {
  font-size: 48px;
  color: var(--primary);
  background: #ffe6ea;
  width: 80px; height: 80px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.login-brand h1 {
  font-size: 22px;
  margin: 8px 0 4px;
  color: var(--ink);
}
.login-brand p { color: var(--muted); margin: 0; }
.login-form .form-control {
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid #e6e8ee;
}
.login-form .form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.btn-login {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.2s;
}
.btn-login:hover { background: var(--primary-dark); color: #fff; }
.login-footer { text-align: center; margin-top: 18px; }
.login-footer a { color: var(--muted); font-size: 13px; }

.current-file {
  background: #f4f6fa;
  border-radius: 8px;
  padding: 12px 14px;
}

@media (max-width: 768px) {
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}
@media (max-width: 576px) {
  .admin-sidebar {
    position: static;
    width: 100%; height: auto;
    padding: 12px;
  }
  .sidebar-section { display: none; }
  .admin-main { margin-left: 0; }
}
