/* ═══════════════════════════════════════════════════════════════
   theme.css — Global Light/Dark Theme Variables
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* LIGHT MODE (Default) */
  --bg-main: linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
  --bg-surface: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
  --bg-surface-alt: #f1f3f8;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-solid: #f8f9fc;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --border-color: #e5e7eb;
  --border-color-hover: #d1d5db;

  --accent-primary: #1a1a1a;
  --accent-hover: #333333;
  --accent-text: #ffffff;
  --accent-inverted: #ffffff;
  --accent-inverted-text: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.16);

  --error: #dc2626;
  --success: #16a34a;
  --warning: #ca8a04;

  --input-bg: #ffffff;
  --input-border: #ccc;
  --input-text: #111827;
  
  --skeleton-bg: #e2e5e7;
  --skeleton-highlight: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
  /* DARK MODE */
  --bg-main: linear-gradient(135deg, #0d0f12 0%, #1a1c23 100%);
  --bg-surface: linear-gradient(135deg, #181a20 0%, #20232a 100%);
  --bg-surface-alt: #2b2e36;
  --bg-overlay: rgba(0, 0, 0, 0.75);
  --bg-solid: #0d0f12;

  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;

  --border-color: #374151;
  --border-color-hover: #4b5563;

  --accent-primary: #ffffff;
  --accent-hover: #e5e5e5;
  --accent-text: #1a1a1a;
  --accent-inverted: #1a1a1a;
  --accent-inverted-text: #1a1a1a;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.6);

  --error: #ef4444;
  --success: #22c55e;
  --warning: #eab308;

  --input-bg: #2d2d2d;
  --input-border: #4b5563;
  --input-text: #f3f4f6;
  
  --skeleton-bg: #2d2d2d;
  --skeleton-highlight: rgba(255, 255, 255, 0.1);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  background: rgba(128, 128, 128, 0.15); /* Make button visibly a circle in header */
  border: 1px solid rgba(128, 128, 128, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-alt);
  transform: scale(1.05);
}

.theme-icon-img {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-img svg {
  width: 22px;
  height: 22px;
  fill: var(--text-primary);
  transition: fill 0.2s ease;
}
