/* Admin shell: fixed sidebar, sticky topbar, content area */

.admin-body { min-height: 100vh; }

.admin-sidebar {
  width: 250px; background: var(--sko-ink); color: #C7D0DD;
  position: fixed; inset: 0 auto 0 0; z-index: 1040;
  display: flex; flex-direction: column; overflow-y: auto;
  transition: transform .2s ease;
}
.admin-sidebar .brand {
  padding: 1.15rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff; font-weight: 600; letter-spacing: -.01em;
}
.admin-sidebar .brand small { display: block; font-size: .7rem; font-weight: 400; color: #8A99AF; letter-spacing: .05em; margin-top: .15rem; }
.admin-sidebar .nav-section { padding: 1.1rem 1.25rem .4rem; font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: #7C8CA4; }
.admin-sidebar a.nav-link {
  color: #C7D0DD; padding: .55rem 1.25rem; font-size: .92rem;
  display: flex; align-items: center; gap: .6rem; border-left: 3px solid transparent;
}
.admin-sidebar a.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.admin-sidebar a.nav-link.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--sko-accent); }
.admin-sidebar a.nav-link i { font-size: 1.05rem; width: 1.2rem; }
.admin-sidebar .sidebar-foot { margin-top: auto; padding: 1rem 1.25rem; font-size: .74rem; color: #7C8CA4; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .locked { opacity: .45; cursor: not-allowed; }

.admin-main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--sko-card); border-bottom: 1px solid var(--sko-line);
  padding: .7rem 1.5rem; position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 1rem;
}
.admin-topbar h1 { font-size: 1.05rem; margin: 0; font-weight: 600; }
.admin-content { padding: 1.5rem; flex: 1; }
.admin-footer { padding: .9rem 1.5rem; color: var(--sko-muted); font-size: .8rem; border-top: 1px solid var(--sko-line); }

.stat-card { padding: 1.1rem 1.25rem; }
.stat-card .label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sko-muted); font-weight: 600; }
.stat-card .value { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: .3rem; }
.stat-card .hint { font-size: .82rem; color: var(--sko-muted); }

.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sko-muted); font-weight: 600; border-bottom-color: var(--sko-line); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: var(--sko-paper); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand-mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sko-ink); color: #fff;
  display: grid; place-items: center; font-weight: 600; letter-spacing: -.02em;
}

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(20,35,59,.45); z-index: 1035; }
}

@media print {
  .admin-sidebar, .admin-topbar, .admin-footer, .no-print { display: none !important; }
  .admin-main { margin-left: 0; }
  .card { box-shadow: none; }
}
