/* ── MUTINY Staff Hub — shared theme & shell ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1117;
  --sidebar-bg: #151821;
  --surface: #1a1f2e;
  --surface-2: #1f2535;
  --surface-3: #252b3b;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e8eaf0;
  --muted: #6b7280;
  --accent: #00b4d8;
  --accent-dim: rgba(0,180,216,0.12);
  --green: #10b981;
  --green-dim: rgba(16,185,129,0.12);
  --purple: #8b5cf6;
  --purple-dim: rgba(139,92,246,0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --red: #ef4444;
  --sidebar-w: 220px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
}

/* ── Permanent Sidebar ── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 100;
}
.sidebar-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand img { height: 36px; width: auto; border-radius: 8px; }
.sidebar-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 0.06em; color: var(--text); line-height: 1.1;
}
.sidebar-brand-name span { color: var(--accent); }
.sidebar-brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }

.sidebar-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.sidebar-nav-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }

.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  text-decoration: none; color: var(--muted);
  font-size: 13px; margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
}
.sidebar-nav-item:hover { background: var(--surface-2); color: var(--text); }
.sidebar-nav-item.active { background: var(--surface-2); color: var(--accent); }
.sidebar-nav-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* User profile at bottom */
.sidebar-user {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); overflow: hidden;
}
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 10px; color: var(--muted); }
.sidebar-logout {
  width: 26px; height: 26px; border-radius: 6px;
  background: none; border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color 0.15s, border-color 0.15s; flex-shrink: 0;
}
.sidebar-logout:hover { color: var(--red); border-color: rgba(239,68,68,0.3); }
.sidebar-logout svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Online indicator */
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 5px; }

/* ── Main content ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1; position: relative; z-index: 1;
  padding: 32px 32px 60px;
  min-height: 100vh;
}

header { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
header img { max-width: 240px; width: 100%; height: auto; margin-bottom: 12px; display: block; }
h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px,4vw,48px); letter-spacing: 0.02em; line-height: 1; color: var(--text); }
h1 span { color: var(--accent); }
.header-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

.section-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }

/* ── Empty-state placeholder for not-yet-built tabs ── */
.page-content { animation: fadeUp 0.4s ease both; }
.page-placeholder {
  background: var(--surface); border: 1px dashed var(--border-hover); border-radius: 12px;
  padding: 64px 40px; text-align: center;
}
.page-placeholder svg { width: 40px; height: 40px; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; opacity: 0.6; }
.page-placeholder-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.04em; color: var(--text); margin-bottom: 6px; }
.page-placeholder-text { font-size: 13px; color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 40px; flex-wrap: wrap; gap: 8px; }

@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main { margin-left: 0; padding: 16px 16px 40px; }
}
