/* ==========================================================================
   PropDesk — Institutional Swiss Trading Desk UI
   Matte obsidian surfaces, hairline borders, zero generic glow/slop.
   ========================================================================== */

:root {
  --bg: #07090D;
  --surface: #0C0F15;
  --surface-2: #111620;
  --surface-3: #171D2A;
  --border: #1C2331;
  --border-2: #283245;
  --text: #ECEFF4;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --accent: #10B981;
  --blue: #3B82F6;
  --danger: #EF4444;
  --warn: #EAB308;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

.font-mono, .tabular-nums {
  font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #07090D; }
::-webkit-scrollbar-thumb { background: #1E2534; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2E384E; }

/* Architectural matte card */
.desk-panel {
  background: var(--surface);
  border: 1px solid var(--border);
}

.desk-panel-sub {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Crisp Inputs */
.desk-input {
  background: #080A0F;
  border: 1px solid var(--border-2);
  color: var(--text);
  transition: border-color 0.15s ease;
}
.desk-input:focus {
  outline: none;
  border-color: #64748B;
}

/* Primary & Secondary Buttons */
.btn-primary {
  background: #ECEFF4;
  color: #07090D;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.btn-primary:hover { background: #FFFFFF; }

.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: #CBD5E1;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.btn-secondary:hover {
  border-color: #3E4C66;
  color: #FFFFFF;
  background: var(--surface-3);
}

/* Nav Tabs — Clean underline indicator */
.nav-tab {
  position: relative;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  outline: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-tab:focus-visible {
  outline: 1px solid #334155;
  outline-offset: -2px;
}
.nav-tab:hover { color: #CBD5E1; }
.nav-tab.active {
  color: #FFFFFF;
  border-bottom-color: #10B981;
}

/* Status Strip Accent Bar */
.status-bar-active { border-left: 3px solid #10B981; }
.status-bar-target { border-left: 3px solid #3B82F6; }
.status-bar-stopped { border-left: 3px solid #EAB308; }
.status-bar-outside { border-left: 3px solid #475569; }
.status-bar-breached { border-left: 3px solid #EF4444; background: rgba(239, 68, 68, 0.05); }

/* Flat Status Tags */
.tag-ok { color: #34D399; background: rgba(16, 185, 129, 0.10); border: 1px solid rgba(16, 185, 129, 0.25); }
.tag-warn { color: #FACC15; background: rgba(234, 179, 8, 0.10); border: 1px solid rgba(234, 179, 8, 0.26); }
.tag-stop { color: #93C5FD; background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.26); }
.tag-breach { color: #FCA5A5; background: rgba(239, 68, 68, 0.13); border: 1px solid rgba(239, 68, 68, 0.35); }
.tag-muted { color: #94A3B8; background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.2); }

/* Journal Calendar (Matches exact 8-column dark grid reference) */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.cal-cell {
  background: #0B0E14;
  border: 1px solid #19202D;
  border-radius: 6px;
  min-height: 82px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cal-cell-day:hover {
  border-color: #334155;
  cursor: pointer;
}
.cal-cell-today {
  background: #232B39;
  border-color: #3C4960;
}
.cal-cell-selected {
  border-color: #10B981 !important;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
}
.cal-cell-win {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.28);
}
.cal-cell-loss {
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.28);
}
.cal-cell-week {
  background: #090C11;
  border: 1px solid #161C27;
}
.cal-cell-out {
  opacity: 0.38;
}

/* Segmented pills (Calculator / Filters) */
.seg-btn {
  color: #94A3B8;
  transition: all 0.14s ease;
}
.seg-btn:hover { color: #ECEFF4; }
.seg-btn.active {
  background: #1B2332;
  color: #FFFFFF;
  border-color: #2E3B52;
}

/* Checklist custom check */
.check-item input:checked + .check-box {
  background: #10B981;
  border-color: #10B981;
}
.check-item input:checked ~ .check-label {
  color: #64748B;
  text-decoration: line-through;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.live-dot { animation: livePulse 2s infinite ease-in-out; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
