/* 05-components.css - Toast, drag ghost, divider, theme toggle, toggle rows, LIGHT-mode component overrides */
/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9000;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ DRAG GHOST ═══ */
.drag-ghost {
  position: fixed;
  pointer-events: none;
  border-radius: 5px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  opacity: 0.9;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ═══ DIVIDER ═══ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Small utility */
.text-muted { color: var(--text-3); font-size: 12px; }

/* ═══ THEME TOGGLE BUTTON ═══ */
.theme-toggle-btn {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-2);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px 5px 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.theme-toggle-btn:hover {
  border-color: var(--accent-dim);
  color: var(--text);
  background: var(--accent-light);
}
.theme-toggle-icon { font-size: 13px; line-height: 1; }

/* ═══ TOGGLE OPTION (checkbox rows) ═══ */
.toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.toggle-option:hover { background: var(--accent-light); border-color: var(--accent-dim); }
html[data-theme="light"] .toggle-option { background: rgba(124,58,237,0.04); }
html[data-theme="light"] .toggle-option:hover { background: rgba(124,58,237,0.1); }
.toggle-option-text .toggle-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.toggle-option-text .toggle-desc {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ═══ LIGHT MODE COMPONENT OVERRIDES ═══ */

/* Inputs */
html[data-theme="light"] .input-field {
  background: rgba(124,58,237,0.04);
}
html[data-theme="light"] .input-field:focus {
  background: rgba(124,58,237,0.07);
}
html[data-theme="light"] .bulk-panel textarea {
  background: rgba(124,58,237,0.04);
}

/* Player chips area */
html[data-theme="light"] .player-chips {
  background: rgba(124,58,237,0.04);
}

/* Mode selector */
html[data-theme="light"] .mode-option {
  background: rgba(124,58,237,0.03);
}
html[data-theme="light"] .mode-option:hover {
  background: rgba(124,58,237,0.07);
}
html[data-theme="light"] .mode-option.selected {
  background: rgba(124,58,237,0.1);
}

/* Scoreboard */
html[data-theme="light"] .scoreboard-strip {
  background: rgba(124,58,237,0.05);
}

/* Search */
html[data-theme="light"] .search-input {
  background: rgba(124,58,237,0.04);
}
html[data-theme="light"] .search-input:focus {
  background: rgba(124,58,237,0.07);
}

/* Search overlay - lighter in light mode */
html[data-theme="light"] .search-overlay {
  background: rgba(200,195,240,0.55);
}

/* Buttons with hardcoded dark hover */
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(124,58,237,0.06);
}
html[data-theme="light"] .btn-modal-cancel:hover {
  background: rgba(124,58,237,0.06);
}
html[data-theme="light"] .btn-choice.setup {
  background: rgba(124,58,237,0.04);
}
html[data-theme="light"] .btn-choice.setup:hover {
  background: rgba(124,58,237,0.08);
}
html[data-theme="light"] .edit-add-table-btn {
  background: rgba(124,58,237,0.04);
}
html[data-theme="light"] .edit-add-table-btn:hover {
  background: rgba(124,58,237,0.1);
}

/* Shadows - much softer on light */
html[data-theme="light"] .t-header {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
html[data-theme="light"] .table-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
html[data-theme="light"] .setup-card {
  box-shadow: 0 4px 40px rgba(124,58,237,0.1), inset 0 1px 0 rgba(124,58,237,0.08);
}
html[data-theme="light"] .lb-card {
  box-shadow: 0 4px 40px rgba(124,58,237,0.1), inset 0 1px 0 rgba(124,58,237,0.08);
}
html[data-theme="light"] .modal-card {
  box-shadow: 0 16px 60px rgba(0,0,0,0.15);
}

/* Screen backgrounds */
