/*
 * Torque Rewards — superadmin dashboard LIGHT-MODE overrides.
 *
 * Superadmin pages use blue accents (--accent-1 etc.) rather than
 * the operator dashboard's green ramp, to visually distinguish the
 * Encore-internal surface from operator-facing pages. This file
 * swaps the dark surfaces for light paper without touching the
 * blue accent identity.
 *
 * Include with:
 *   <link rel="stylesheet" href="/theme-light.css" />
 */

html[data-theme="light"] {
  /* Core surfaces */
  --bg:        #fdfdf9;
  --bg-1:      #ffffff;
  --bg-2:      #f6faf9;    /* subtle cool tint */
  --bg-3:      #ecf3fb;    /* subtle blue tint */

  /* Lines */
  --line:      rgba(10, 15, 13, 0.08);
  --line-2:    rgba(10, 15, 13, 0.14);
  --line-3:    rgba(10, 15, 13, 0.22);

  /* Ink */
  --ink:       #0a0f0d;
  --ink-dim:   #5d6a62;
  --ink-mute:  #8c968f;

  /* Blue accent ramp — adjust for contrast on light paper */
  --accent-1:  #3b82f6;    /* was #60a5fa — stronger blue on white */
  --accent-2:  #2563eb;
  --accent-3:  #1d4ed8;

  /* Status colors */
  --green:     #15803d;
  --red:       #dc2626;
  --amber:     #d97706;
}

/* Body noise overlay — fade to near-invisible on light paper */
html[data-theme="light"] body::before {
  opacity: 0.06 !important;
  mix-blend-mode: multiply !important;
}

/* Body glow — adjust for light background */
html[data-theme="light"] body::after {
  background: radial-gradient(
    1400px 700px at 50% -10%,
    rgba(59, 130, 246, 0.06),
    transparent 60%
  ) !important;
}

/* Sticky top bar */
html[data-theme="light"] .topbar {
  background: rgba(253, 253, 249, 0.85) !important;
}

/* Tabs */
html[data-theme="light"] .tabs {
  background: var(--bg-1) !important;
  border-color: var(--line-2) !important;
}
html[data-theme="light"] .tab.active {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #2563eb !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Cards / panels — anything that looks like a container */
html[data-theme="light"] .card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .operator-row,
html[data-theme="light"] .customer-row {
  background: #ffffff !important;
  border-color: var(--line) !important;
  box-shadow: 0 4px 12px rgba(10, 15, 13, 0.04), 0 1px 3px rgba(10, 15, 13, 0.03) !important;
}

/* Inputs */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-color: var(--line-2) !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: var(--ink-mute) !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  border-color: #3b82f6 !important;
}

/* Code blocks */
html[data-theme="light"] code,
html[data-theme="light"] pre {
  background: #f6faf9 !important;
  border-color: var(--line-2) !important;
  color: var(--ink) !important;
}

/* Table styling */
html[data-theme="light"] table thead {
  background: #f6faf9 !important;
}
html[data-theme="light"] table thead th {
  color: var(--ink-mute) !important;
  border-color: var(--line-2) !important;
}
html[data-theme="light"] table tbody td {
  color: var(--ink-dim) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] table tbody tr:hover {
  background: #f6faf9 !important;
}

/* Selection */
html[data-theme="light"] ::selection {
  background: rgba(59, 130, 246, 0.3) !important;
  color: var(--ink) !important;
}

/* Smooth theme transitions */
html body {
  transition: background-color 0.25s, color 0.25s;
}
