/* ─────────────────────────────────────────────
   Sidebar Layout
   ───────────────────────────────────────────── */

[data-component="sidebar-layout"] {
  display: flex;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 520px at -10% -5%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(900px 480px at 110% 0%, rgba(245, 158, 11, 0.16), transparent 52%),
    radial-gradient(780px 420px at 50% 100%, rgba(20, 184, 166, 0.08), transparent 55%),
    linear-gradient(180deg, #f6f8fc 0%, #eef3f9 48%, #f7fafc 100%);
}

[data-component="sidebar"] {
  width: 240px;
  min-width: 240px;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

[data-slot="sidebar-title"] {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  padding: 0 20px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

[data-slot="sidebar-subtitle"] {
  font-size: 12px;
  color: #64748b;
  padding: 0 20px;
  margin: 0 0 20px;
}

[data-slot="sidebar-nav"] {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  flex: 1;
}

[data-slot="sidebar-item"] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

[data-slot="sidebar-item"]:hover {
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
}

[data-slot="sidebar-item"][data-active] {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-slot="sidebar-footer"] {
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: auto;
}

[data-component="sidebar-content"] {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow-y: auto;
  padding: 32px;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  [data-component="sidebar-layout"] {
    flex-direction: column;
  }

  [data-component="sidebar"] {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: #f8fafc;
    backdrop-filter: none;
    padding: 12px 0;
    overflow-x: auto;
  }

  [data-slot="sidebar-title"],
  [data-slot="sidebar-subtitle"],
  [data-slot="sidebar-footer"] {
    display: none;
  }

  [data-slot="sidebar-nav"] {
    flex-direction: row;
    padding: 0 12px;
    gap: 4px;
  }

  [data-slot="sidebar-item"] {
    white-space: nowrap;
    padding: 8px 14px;
  }

  [data-component="sidebar-content"] {
    padding: 20px 14px;
  }
}
