/* ============================================================
   Design tokens — dark amber theme
   ============================================================ */
:root {
  --background:               #131313;
  --surface:                  #131313;
  --surface-container:        #201f1f;
  --surface-container-high:   #2a2a2a;
  --surface-container-highest:#353534;
  --on-surface:               #e5e2e1;
  --on-surface-variant:       #d8c3ad;
  --primary:                  #ffc174;
  --primary-container:        #f59e0b;
  --on-primary-container:     #613b00;
  --outline:                  #a08e7a;
  --outline-variant:          #534434;
  --amber-500:                #f59e0b;
  --amber-400:                #fbbf24;
  --neutral-900:              #0a0a0a;
  --neutral-800:              #1a1a1a;
  --neutral-700:              #262626;
  --neutral-500:              #737373;
  --neutral-400:              #a3a3a3;
  --neutral-200:              #e5e5e5;
  --tertiary:                 #8fd5ff;
  --error:                    #ffb4ab;

  --sidebar-width: 256px;
  --topbar-height: 64px;
  --radius-sm:  6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  background-color: var(--background);
  color: var(--on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  font-size: 20px;
}

/* ============================================================
   App shell
   ============================================================ */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 24px 0;
  background-color: var(--neutral-900);
  border-right: 1px solid var(--neutral-800);
  position: fixed;
  left: 0; top: 0;
  z-index: 50;
}

@media (min-width: 768px) { .sidebar { display: flex; } }

.sidebar-header {
  padding: 0 28px;
  margin-bottom: 32px;
}

.sidebar-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--amber-500);
  letter-spacing: -0.03em;
}

.sidebar-session {
  font-size: 11px;
  color: var(--neutral-500);
  margin-top: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--running { background-color: #4ade80; animation: pulse 2s infinite; }
.status-dot--paused  { background-color: var(--amber-500); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-500);
  transition: all 0.15s ease;
}

.nav-item:hover:not(.active) {
  color: var(--neutral-200);
  background-color: rgba(38, 38, 38, 0.5);
}

.nav-item.active {
  color: var(--amber-500);
  background-color: rgba(245, 158, 11, 0.08);
  font-weight: 600;
}

.sidebar-footer {
  padding: 20px 28px 0;
  border-top: 1px solid var(--neutral-800);
  margin-top: auto;
}

.footer-links { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  font-size: 14px;
  color: var(--neutral-500);
  transition: color 0.15s;
}
.footer-link:hover { color: var(--neutral-200); }

/* ============================================================
   Main canvas
   ============================================================ */
.main-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 768px) { .main-canvas { margin-left: var(--sidebar-width); } }

/* ============================================================
   Top bar
   ============================================================ */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--topbar-height);
  padding: 0 32px;
  background-color: var(--neutral-900);
  border-bottom: 1px solid var(--neutral-800);
  flex-shrink: 0;
}

.top-bar-brand {
  font-size: 18px;
  font-weight: 900;
  color: var(--amber-500);
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

@media (min-width: 768px) { .top-bar-brand { display: none; } }

.top-bar-right { display: flex; align-items: center; gap: 16px; }

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--surface-container);
  border: 1px solid var(--neutral-700);
  border-radius: 9999px;
}

.profile-name { font-size: 13px; font-weight: 500; color: var(--neutral-400); }

/* ============================================================
   Page content wrapper
   ============================================================ */
.page-content {
  flex: 1;
  padding: 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background-color: var(--surface-container);
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-sm { padding: 20px; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
}

/* ============================================================
   Bento grid
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px)  { .bento-grid { grid-template-columns: repeat(12, 1fr); } }

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 12; }
.col-4  { grid-column: span 12; }
.col-6  { grid-column: span 12; }

@media (min-width: 768px) {
  .col-8 { grid-column: span 8; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
}

/* ============================================================
   Timer card (amber highlight)
   ============================================================ */
.timer-card {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.timer-card-bg-icon {
  position: absolute;
  top: 0; right: 0;
  padding: 20px;
  opacity: 0.08;
  pointer-events: none;
}
.timer-card-bg-icon .material-symbols-outlined { font-size: 120px; }

.timer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.timer-task-name { font-size: 22px; font-weight: 600; margin-top: 4px; }
.timer-project-name { font-size: 13px; margin-top: 2px; opacity: 0.65; font-weight: 500; }

.timer-display {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  margin-top: 24px;
  line-height: 1;
}

.timer-controls { display: flex; gap: 12px; margin-top: 20px; }

.btn-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: inherit;
}

.btn-timer--pause  { background-color: rgba(255,255,255,0.25); }
.btn-timer--stop   { background-color: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.3); }
.btn-timer--resume { background-color: rgba(255,255,255,0.25); }
.btn-timer:hover   { filter: brightness(1.1); }
.btn-timer:active  { transform: scale(0.96); }

/* idle state */
.timer-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.timer-idle p { opacity: 0.65; font-size: 14px; }

/* ============================================================
   Earnings chart card
   ============================================================ */
.bar-chart {
  height: 160px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 4px;
  margin-top: 32px;
}

.bar {
  flex: 1;
  background-color: var(--neutral-800);
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
}
.bar:hover { background-color: var(--neutral-700); }
.bar.bar--soft    { background-color: rgba(245, 158, 11, 0.5); }
.bar.bar--current { background-color: var(--amber-500); }

.earnings-amount {
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin-top: 8px;
  letter-spacing: -0.03em;
}

.earnings-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* ============================================================
   Project cards grid
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background-color: var(--surface-container);
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--outline); }

.project-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.project-card-name { font-size: 16px; font-weight: 700; }
.project-card-client { font-size: 12px; font-weight: 600; color: var(--neutral-500); margin-top: 2px; }

.progress-container { margin-top: auto; padding-top: 20px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.progress-bar-bg { width: 100%; height: 3px; background-color: var(--neutral-800); border-radius: 9999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background-color: var(--amber-500); border-radius: 9999px; }

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--neutral-800);
}

.project-price { font-size: 14px; font-weight: 600; color: white; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--active    { background: rgba(245,158,11,0.15); color: var(--amber-400); border: 1px solid rgba(245,158,11,0.3); }
.badge--completed { background: rgba(74,222,128,0.1);  color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.badge--on-hold   { background: rgba(163,163,163,0.1); color: var(--neutral-400); border: 1px solid var(--neutral-700); }
.badge--archived  { background: transparent; color: var(--neutral-500); border: 1px solid var(--neutral-800); }
.badge--hourly    { background: rgba(143,213,255,0.1); color: var(--tertiary); border: 1px solid rgba(143,213,255,0.2); }
.badge--fixed     { background: rgba(245,158,11,0.1); color: var(--amber-400); border: 1px solid rgba(245,158,11,0.2); }

.project-card.project-card--new {
  border-style: dashed;
  background: transparent;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px;
  min-height: 180px;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.project-card--new:hover { border-color: var(--amber-500); color: var(--amber-500); }
.project-card--new .material-symbols-outlined { font-size: 32px; }

/* ============================================================
   Invoice list
   ============================================================ */
.invoice-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}
.invoice-item:hover { background-color: rgba(38, 38, 38, 0.5); }

.invoice-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--neutral-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber-500);
  flex-shrink: 0;
}

.invoice-details { display: flex; align-items: center; gap: 14px; }
.invoice-main { font-size: 14px; font-weight: 500; color: white; }
.invoice-sub  { font-size: 12px; color: var(--neutral-500); }

.invoice-amount-value  { font-size: 14px; font-weight: 600; color: white; text-align: right; }
.invoice-status { font-size: 10px; font-weight: 700; text-transform: uppercase; text-align: right; }
.invoice-status--pending  { color: var(--amber-500); }
.invoice-status--paid     { color: #4ade80; }
.invoice-status--overdue  { color: var(--error); }
.invoice-status--draft    { color: var(--neutral-400); }
.invoice-status--cancelled{ color: var(--neutral-500); }

/* ============================================================
   Table
   ============================================================ */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background-color: rgba(10,10,10,0.5); }
th {
  padding: 10px 20px;
  font-size: 11px;
  color: var(--neutral-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--neutral-800);
  font-size: 14px;
  vertical-align: middle;
}
tr:hover td { background-color: rgba(26,26,26,0.3); }
.td-muted { color: var(--neutral-500); }
.text-right { text-align: right; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}
.btn--primary:hover { opacity: 0.92; }

.btn--outline {
  background-color: var(--surface-container-highest);
  color: var(--on-surface);
  border: 1px solid var(--outline);
}
.btn--outline:hover { background-color: var(--neutral-800); }

.btn--ghost {
  background: none;
  color: var(--on-surface-variant);
  border: 1px solid var(--neutral-700);
}
.btn--ghost:hover { background-color: var(--surface-container); }

.btn--danger {
  background-color: rgba(255, 100, 80, 0.15);
  color: var(--error);
  border: 1px solid rgba(255, 100, 80, 0.25);
}

.btn--sm { padding: 7px 13px; font-size: 13px; }
.btn--icon { padding: 8px; border-radius: 9999px; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-400);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="color"],
select,
textarea {
  width: 100%;
  background-color: var(--surface-container-high);
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--amber-500);
}

input[type="color"] {
  padding: 4px 6px;
  height: 40px;
  cursor: pointer;
}

select option { background-color: var(--surface-container-highest); }

/* Number input — spinner (up/down) buttons */
input[type="number"] {
  color-scheme: dark; /* ensures arrows render light on our dark surface */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
  background-color: var(--surface-container-highest);
  border-left: 1px solid var(--outline-variant);
  cursor: pointer;
  transition: background-color 0.15s;
}

input[type="number"]::-webkit-inner-spin-button:hover,
input[type="number"]::-webkit-outer-spin-button:hover {
  background-color: rgba(245, 158, 11, 0.12);
}

input[type="number"]:focus::-webkit-inner-spin-button,
input[type="number"]:focus::-webkit-outer-spin-button {
  border-left-color: var(--amber-500);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

.errorlist {
  list-style: none;
  margin-top: 4px;
  font-size: 12px;
  color: var(--error);
}

/* ============================================================
   Page header row
   ============================================================ */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.page-title { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: white; }
.page-subtitle { font-size: 14px; color: var(--neutral-400); margin-top: 4px; }

/* ============================================================
   Section headers
   ============================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title { font-size: 22px; font-weight: 600; color: white; }
.view-all-link { font-size: 13px; font-weight: 500; color: var(--primary); }
.view-all-link:hover { text-decoration: underline; }

/* ============================================================
   Toggle (time / earnings)
   ============================================================ */
.toggle-group {
  display: flex;
  background-color: var(--neutral-800);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-700);
  gap: 2px;
}

.toggle-btn {
  padding: 4px 14px;
  border-radius: 4px;
  border: none;
  background: none;
  color: var(--neutral-400);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.toggle-btn.active { background-color: var(--amber-500); color: var(--neutral-900); }

/* ============================================================
   Circular progress (time tracker hero)
   ============================================================ */
.circular-progress {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-progress svg {
  position: absolute;
  transform: rotate(-90deg);
}

.circ-time-text { text-align: center; }
.circ-time-value { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.circ-time-label { font-size: 11px; color: var(--neutral-500); }

/* ============================================================
   Stat boxes
   ============================================================ */
.stat-box {
  background-color: var(--neutral-900);
  border: 1px solid var(--neutral-800);
  padding: 16px;
  border-radius: var(--radius-md);
}

.stat-label { font-size: 12px; color: var(--neutral-500); margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 600; }
.stat-value--highlight { color: var(--amber-500); }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   Quick logs (recent entries in sidebar)
   ============================================================ */
.log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}
.log-item:hover { background-color: var(--neutral-800); }
.log-item:hover .log-play-icon { color: var(--amber-500); }

.log-info { display: flex; align-items: center; gap: 12px; }
.log-dot { width: 7px; height: 7px; border-radius: 50%; background-color: var(--neutral-500); }
.log-play-icon { color: var(--neutral-500); font-size: 18px; transition: color 0.15s; }

/* ============================================================
   Messages
   ============================================================ */
.messages { display: flex; flex-direction: column; gap: 8px; }

.message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}
.message--success { background-color: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.message--error   { background-color: rgba(255,100,80,0.1); color: var(--error); border: 1px solid rgba(255,100,80,0.2); }
.message--info    { background-color: rgba(143,213,255,0.1); color: var(--tertiary); border: 1px solid rgba(143,213,255,0.2); }

/* ============================================================
   Welcome row (dashboard)
   ============================================================ */
.welcome-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .welcome-row { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.welcome-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.welcome-title   { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; color: white; }
.welcome-sub     { font-size: 14px; color: var(--neutral-400); margin-top: 4px; }
.welcome-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ============================================================
   Mobile bottom nav
   ============================================================ */
.mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--neutral-900);
  border-top: 1px solid var(--neutral-800);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 50;
}

@media (min-width: 768px) { .mobile-nav { display: none; } }

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 600;
  padding: 8px 16px;
  transition: color 0.15s;
}
.mobile-nav-item.active { color: var(--amber-500); }
.mobile-nav-item .material-symbols-outlined { font-size: 22px; }

/* ============================================================
   Auth pages
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background-color: var(--background);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--surface-container);
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.auth-logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--amber-500);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: 8px;
}

.auth-headline {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 14px;
  color: var(--neutral-500);
  margin-bottom: 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--neutral-500);
}

.auth-footer a { color: var(--primary); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   Toast notifications
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (max-width: 767px) {
  #toast-container { bottom: 76px; right: 16px; }
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background-color: var(--surface-container-high);
  border: 1px solid var(--neutral-700);
  border-left: 3px solid var(--neutral-700);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface);
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success { border-left-color: var(--amber-500); }
.toast--error   { border-left-color: var(--error); }

/* ============================================================
   Utility
   ============================================================ */
.spacer-mobile { height: 72px; }
@media (min-width: 768px) { .spacer-mobile { display: none; } }

.text-muted    { color: var(--neutral-500); }
.text-primary  { color: var(--primary); }
.text-amber    { color: var(--amber-500); }
.text-white    { color: white; }
.text-sm       { font-size: 13px; }
.text-xs       { font-size: 11px; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-auto { margin-top: auto; }

.htmx-indicator { opacity: 0; transition: opacity 0.2s; }
.htmx-request .htmx-indicator { opacity: 1; }

/* Custom scrollbar */
::-webkit-scrollbar              { width: 8px; height: 8px; }
::-webkit-scrollbar-track        { background: var(--neutral-900); }
::-webkit-scrollbar-thumb        { background: #2e2e2e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover  { background: #3d3d3d; }
* { scrollbar-width: thin; scrollbar-color: #2e2e2e var(--neutral-900); }
