/* ============================================================
   Visibility — Design Tokens
   Direction: Cool Grey × Indigo / Periwinkle
   ============================================================ */

:root {
  --bg-base:        #171719;
  --bg-surface:     #1e1e22;
  --bg-card:        #252529;
  --bg-elevated:    #2c2c32;
  --bg-sidebar:     #141416;
  --border:         #2f2f36;
  --divider:        #232328;
  --text-primary:   #F0EFF4;
  --text-secondary: #8A8A9A;
  --text-muted:     #4A4A5A;
  --text-label:     #5E5E72;
  --accent:         #6B7FFF;
  --accent-dim:     #3D4ECC;
  --accent-faint:   #1E2A78;
  --accent-glow:    rgba(107,127,255,0.15);
  --tab-inactive:   #8A8A9A;
  --tab-hover:      #b0b0c0;
  --tab-active:     #F0EFF4;
  --tab-indicator:  #6B7FFF;
  --status-confirm: #4cc88a;
  --status-review:  #d4a84b;
  --status-danger:  #e05a6a;
  --font-display:   'Sora', sans-serif;
  --font-body:      'Inter', sans-serif;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.nav-tab {
  color: var(--tab-inactive);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 400;
  padding: 0 14px;
  height: 100%;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.nav-tab:hover { color: var(--tab-hover); }
.nav-tab.active { color: var(--tab-active); font-weight: 500; border-bottom-color: var(--tab-indicator); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s, border-color 0.2s;
}
.card:hover { background: var(--bg-elevated); border-color: var(--accent-dim); }

.surface { background: var(--bg-surface); }
.sidebar { background: var(--bg-sidebar); border-right: 1px solid var(--border); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-label     { color: var(--text-label); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

hr, .divider { border: none; border-top: 1px solid var(--divider); }

.badge { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.badge-confirm { background: rgba(77,200,138,0.12); color: var(--status-confirm); border: 1px solid rgba(77,200,138,0.25); }
.badge-review  { background: rgba(212,168,75,0.12); color: var(--status-review); border: 1px solid rgba(212,168,75,0.25); }
.badge-danger  { background: rgba(224,90,106,0.10); color: var(--status-danger); border: 1px solid rgba(224,90,106,0.20); }

.btn-action { padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; }
.btn-confirm, .btn-review { background: rgba(107,127,255,0.09); color: var(--accent); border: 1px solid rgba(107,127,255,0.20); }
.btn-confirm:hover, .btn-review:hover { background: rgba(107,127,255,0.15); }
.btn-delete { background: rgba(224,90,106,0.08); color: var(--status-danger); border: 1px solid rgba(224,90,106,0.18); }
.btn-delete:hover { background: rgba(224,90,106,0.14); }
.btn-primary { background: var(--accent); color: #0d0d0f; border: none; padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.btn-primary:hover { opacity: 0.88; }

.sidebar-item { padding: 7px 10px; border-radius: 6px; font-size: 13px; color: var(--text-secondary); background: transparent; cursor: pointer; transition: background 0.12s, color 0.12s; }
.sidebar-item:hover { color: var(--text-primary); }
.sidebar-item.active { color: var(--text-primary); background: var(--accent-faint); }

/* Force dark chrome on date/time/number inputs */
input[type="date"], input[type="time"], input[type="datetime-local"],
input[type="month"], input[type="week"], input[type="number"],
input, select, textarea {
  color-scheme: dark;
}

/* Global input/select/textarea dark styling */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]),
select,
textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
}
input::placeholder, textarea::placeholder {
  color: var(--text-secondary);
}
input:focus:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]),
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Select: custom dark arrow + option list colours */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238A8A9A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.page-description {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.4;
  max-width: 480px;
}

/* ── Audio player dark treatment (global) ── */
audio {
  filter: invert(0.85) brightness(0.6);
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: block;
  outline: none;
}
audio:hover {
  filter: invert(0.85) brightness(0.75);
}
audio:focus {
  outline: none;
  filter: invert(0.85) brightness(0.75);
}
