/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
======================================== */
:root {
  /* Colors - Dark Theme (Default) */
  --bg: #1c1c1c;
  --bg-secondary: #2b2b2b;
  --bg-transparent: #1c1c1c66;
  --bg-elevated: rgba(100, 100, 100, 0.1);

  /* Text Colors */
  --text-primary: #e8eef4;
  --text-secondary: #a0a8b0;
  --text-titel: #888;
  --text-muted: #666666;
  --text-contrast: #000000;

  /* Accent Colors */
  --accent-primary: #00d4ff;
  --accent-secondary: #00ff88;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);

  /* UI Colors */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --hover: rgba(255, 255, 255, 0.08);
  --active: rgba(255, 255, 255, 0.12);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  /* --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.5); */

  /* Sizing */
  --header-height: 70px;
  --container-max: 1400px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-Index Scale */
  --z-header: 100;
  --z-modal: 200;
  --z-tooltip: 300;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-transparent: #fffffc66;
  --bg-elevated: rgba(0, 0, 0, 0.1);
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #363636;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);
  --hover: rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  --svg: invert(1) brightness(0);
}

[data-theme="deep-dark"] {
  --bg: #09090b;
  --bg-secondary: #18181b;
  --bg-transparent: #09090b66;
  --bg-elevated: rgba(49, 49, 54, 0.1);
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border: rgba(255, 255, 255, 0.06);
}

[data-theme="midnight"] {
  --bg: #1e2127;
  --bg-secondary: #21252c;
  --bg-transparent: #1e212766;
  --bg-elevated: rgba(51, 65, 85, 0.1);
  --hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-titel: #bec8d6;
  --border: rgba(148, 163, 184, 0.15);
  --accent-primary: #38bdf8;
  --accent-secondary: #4ade80;
}

/* ========================================
   FONTS
======================================== */
@font-face {
  font-family: "SN Pro";
  src: url("../font/SNPro-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "SN Pro", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ========================================
   TYPOGRAPHY
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ========================================
   SCROLLBAR
======================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gradient);
}

/* ========================================
     BUTTONS
  ======================================== */
button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: 1px solid var(--border);
  color: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-normal);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}

button img {
  width: 1.8rem;
  height: 1.8rem;
  filter: var(--svg);
}

button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow);
  background: var(--hover);
}

button:active {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
  background: var(--accent-gradient);
}

label {
  color: var(--text-muted);
}

/* ========================================
   FORM ELEMENTS
======================================== */
select,
input {
  font-family: inherit;
  font-size: 10px;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

select:hover,
input:hover {
  border-color: var(--border-hover);
}

select:focus,
input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px #e8eef41a;
  outline: none;
}

select {
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  color: inherit;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-size: .8rem;
}

option {
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px !important;
}

/* Range Input */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-gradient);
  border-radius: 50%;
  cursor: grab;
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
}

/* Number Input */
input[type="number"] {
  cursor: ew-resize;
  user-select: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
