/* Assay Workflow Dashboard - Styles */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

.layout {
  display: flex;
  height: calc(100vh - 32px);
}

.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width 0.2s ease, min-width 0.2s ease;
}

/* Collapsed (icon-only) sidebar — desktop fold mode */
.sidebar.collapsed {
  width: 56px;
  min-width: 56px;
}
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .nav-label {
  display: none;
}
/* .logo-text handles the collapsed hide for the brand text stack (see
   .sidebar.collapsed .logo-text below); the mark-badge's collapsed
   size is tuned inline on .logo-mark itself. */
.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 10px 0;
}
.sidebar.collapsed .sidebar-header {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
/* Toggle icon swaps between < and > based on collapsed state */
.icon-expand   { display: none; }
.sidebar.collapsed .icon-collapse { display: none; }
.sidebar.collapsed .icon-expand   { display: inline; }
/* Chevron SVGs shouldn't sit on the text baseline — align them to the
   button box so the sidebar-collapse button reads visually centred. */
.icon-collapse,
.icon-expand {
  vertical-align: middle;
}
/* Theme icons swap based on data-theme on <html> */
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: inline; }

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg);
}

