html {
  font-size: 17px;
}

.app-body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.app-frame {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease, border-color 0.2s ease;
}

.app-frame.sidebar-collapsed .app-sidebar {
  width: 0;
  border-right-color: transparent;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.sidebar-brand-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.sidebar-brand-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

.sidebar-nav .nav-link {
  color: #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sidebar-nav .nav-link:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #f8fafc;
}

.nav-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  padding: 1rem 0.75rem 0.35rem;
  font-weight: 600;
}

.nav-icon {
  opacity: 0.55;
  width: 1.25rem;
  text-align: center;
}

.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f1f5f9;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.topbar-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sidebar-toggle {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sidebar-toggle-icon {
  line-height: 1;
}

.topbar-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-content {
  flex: 1;
  padding: 1.5rem;
  color: #334155;
}

.app-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.stat-card {
  padding: 1.1rem 1.25rem;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 0.2rem;
}
#7280a1
.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", system-ui, sans-serif;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, #38bdf8 0%, transparent 50%), linear-gradient(165deg, #8faaeb 0%, #1e293b 45%, #0f172a 100%);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 650px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card-header {
    padding: 1.75rem 1.75rem 1rem;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #dfe7f0;
}

.login-card-header .text-muted {
  color: #94a3b8 !important;
}

.login-card-body {
  padding: 1.75rem;
  color: #334155;
}

.login-card .form-label {
  font-weight: 500;
  font-size: 0.88rem;
}

.login-card .btn-primary {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border: none;
  font-weight: 600;
}

.login-card .btn-primary:hover {
  filter: brightness(1.05);
}

.guest-main {
  min-height: 100vh;
  background: #f1f5f9;
  padding: 2rem 1rem;
  color: #334155;
}

.desktop-grid-wrap {
  max-height: 55vh;
  overflow: auto;
}

.app-content .alert code {
  font-size: 0.8em;
}
