:root {
  --bg: #07090d;
  --panel: #111318;
  --panel-2: #0b0d12;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fb;
  --muted: #94a0b2;
  --accent: #8fb2ff;
  --accent-2: #d6e2ff;
  --accent-soft: rgba(143, 178, 255, 0.14);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --ok: #34d399;
}

html {
  min-height: 100%;
}

body.admin-macos-shell {
  position: relative;
  min-height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(118, 127, 255, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(98, 182, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #050608 0%, #090b10 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-macos-shell::before,
body.admin-macos-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body.admin-macos-shell::before {
  top: -110px;
  left: -80px;
  background: rgba(113, 126, 255, 0.14);
}

body.admin-macos-shell::after {
  right: -120px;
  bottom: -120px;
  background: rgba(60, 167, 255, 0.12);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 36px);
}

body.admin-macos-shell .header {
  position: sticky;
  top: 18px;
  align-self: start;
  height: calc(100vh - 36px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, rgba(46, 48, 55, 0.74) 0%, rgba(27, 29, 35, 0.82) 100%);
  backdrop-filter: blur(30px) saturate(125%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

body.admin-macos-shell .nav {
  max-width: none;
  margin: 0;
  padding: 14px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shell-brand-mark {
  width: 32px;
  height: 32px;
  background: url("./pics/logovlab.png") center / contain no-repeat;
  box-shadow: none;
}

.shell-brand-copy {
  min-width: 0;
}

.shell-brand-copy strong {
  display: block;
  color: #eef2f8;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.shell-brand-copy span {
  display: block;
  margin-top: 2px;
  color: rgba(215, 221, 230, 0.58);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.nav-section-label {
  display: none;
  padding: 14px 12px 6px;
  color: rgba(148, 160, 178, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.admin-macos-shell .nav a,
body.admin-macos-shell .logout-btn {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #d2d9e3;
  padding: 0;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-link-inner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: inherit;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(222, 229, 238, 0.62);
  transition: color 0.18s ease;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon svg circle {
  fill: currentColor;
  stroke: none;
}

.nav-label {
  display: block;
  font-size: 0.94rem;
  line-height: 1.2;
}

body.admin-macos-shell .nav a:hover,
body.admin-macos-shell .logout-btn:hover {
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.admin-macos-shell .nav a.active,
body.admin-macos-shell .nav a[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, rgba(110, 120, 138, 0.62) 0%, rgba(82, 90, 105, 0.5) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

body.admin-macos-shell .nav a:hover .nav-icon,
body.admin-macos-shell .logout-btn:hover .nav-icon {
  color: rgba(245, 248, 252, 0.82);
}

body.admin-macos-shell .nav a.active .nav-icon,
body.admin-macos-shell .nav a[aria-current="page"] .nav-icon {
  color: rgba(255, 255, 255, 0.94);
}

body.admin-macos-shell .nav a.active .nav-label,
body.admin-macos-shell .nav a[aria-current="page"] .nav-label {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

body.admin-macos-shell .logout-btn {
  margin-top: auto;
  color: rgba(231, 236, 243, 0.82);
  border-color: transparent;
  background: transparent;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.9) 0%, rgba(11, 13, 18, 0.94) 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.app-topbar-left,
.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-title {
  min-width: 0;
}

.topbar-title small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.08rem;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #e5ebf8;
  font-size: 0.88rem;
  font-weight: 600;
}

.topbar-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.topbar-chip--user::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(143, 178, 255, 0.16);
}

.app-content {
  min-width: 0;
  flex: 1;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.94) 0%, rgba(10, 12, 17, 0.98) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

body.admin-macos-shell .container {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.admin-macos-shell h1,
body.admin-macos-shell h2,
body.admin-macos-shell h3 {
  letter-spacing: -0.02em;
}

body.admin-macos-shell input,
body.admin-macos-shell textarea,
body.admin-macos-shell select {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 10, 16, 0.9);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.admin-macos-shell input:focus,
body.admin-macos-shell textarea:focus,
body.admin-macos-shell select:focus {
  outline: none;
  border-color: rgba(143, 178, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(143, 178, 255, 0.12);
}

body.admin-macos-shell .card,
body.admin-macos-shell .quick,
body.admin-macos-shell .panel,
body.admin-macos-shell .item,
body.admin-macos-shell .editor,
body.admin-macos-shell .summary-card,
body.admin-macos-shell .submission-block,
body.admin-macos-shell .event-card,
body.admin-macos-shell .meta-card,
body.admin-macos-shell .request-card,
body.admin-macos-shell .modal,
body.admin-macos-shell .empty {
  border-color: var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(21, 23, 31, 0.9) 0%, rgba(14, 16, 22, 0.94) 100%);
  box-shadow: none;
}

body.admin-macos-shell .item:hover,
body.admin-macos-shell .request-card:hover,
body.admin-macos-shell .event-card:hover {
  border-color: rgba(143, 178, 255, 0.18);
}

body.admin-macos-shell .primary-btn,
body.admin-macos-shell .save-btn,
body.admin-macos-shell .quick a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #edf3ff 0%, #91b5ff 100%);
  color: #07101c;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.admin-macos-shell .secondary-btn,
body.admin-macos-shell .ghost-btn {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dce4f5;
}

body.admin-macos-shell .danger-btn {
  border-radius: 14px;
}

body.admin-macos-shell .badge,
body.admin-macos-shell .status-pill,
body.admin-macos-shell .booking-pill {
  border-radius: 999px;
}

body.admin-macos-shell .hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  body.admin-macos-shell .header {
    position: static;
    top: auto;
    height: auto;
  }

  body.admin-macos-shell .nav {
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .shell-brand,
  .nav-section-label {
    width: 100%;
  }

  body.admin-macos-shell .nav a,
  body.admin-macos-shell .logout-btn {
    width: auto;
    min-width: 180px;
  }

  body.admin-macos-shell .logout-btn {
    margin-top: 0;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  body.admin-macos-shell {
    padding: 12px;
  }

  .app-shell {
    gap: 12px;
  }

  .app-topbar,
  .app-content {
    border-radius: 22px;
  }

  .app-topbar {
    padding: 14px 16px;
  }

  .app-topbar-right {
    display: none;
  }

  .app-content {
    padding: 18px;
  }

  body.admin-macos-shell .nav a,
  body.admin-macos-shell .logout-btn {
    min-width: 0;
    flex: 1 1 160px;
  }
}
