/* Custom Tesla Aesthetic Styles */

:root {
  --tesla-red: #e82127;
}

/* Custom Webkit scrollbar for sleek minimalist look */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(160, 160, 160, 0.2);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 160, 160, 0.4);
}

/* Custom styled Range Inputs */
input[type=range] {
  -webkit-appearance: none;
  background: #262626;
  border-radius: 9999px;
  height: 6px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e82127;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

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

input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.25);
  background: #e82127;
}

input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e82127;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Paint option card states */
.paint-option {
  cursor: pointer;
  user-select: none;
}

.paint-option.active {
  border-color: #e82127 !important;
  background-color: rgba(232, 33, 39, 0.08);
}

/* Radio button option styling */
.wheel-radio.active, .interior-radio.active {
  border-color: #e82127 !important;
  background-color: rgba(232, 33, 39, 0.05);
}

.term-btn.active {
  border-color: #e82127 !important;
  background-color: rgba(232, 33, 39, 0.15);
  color: #ffffff !important;
}

.down-preset.active, .apr-preset.active {
  border-color: #e82127 !important;
  color: #ffffff !important;
  background-color: rgba(232, 33, 39, 0.15);
}

/* Light Mode Overrides */
html:not(.dark) body {
  background-color: #f8fafc;
  color: #0f172a;
}

html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: #e2e8f0;
}

html:not(.dark) header .text-white {
  color: #0f172a;
}

html:not(.dark) section.bg-gradient-to-b {
  background: linear-gradient(to bottom, #ffffff, #f1f5f9);
  border-color: #e2e8f0;
}

html:not(.dark) section h1,
html:not(.dark) section .text-white,
html:not(.dark) .text-white {
  color: #0f172a;
}

html:not(.dark) .bg-neutral-900 {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

html:not(.dark) .bg-neutral-950 {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

html:not(.dark) .bg-neutral-950\/70,
html:not(.dark) .bg-neutral-950\/80,
html:not(.dark) .bg-neutral-950\/85 {
  background-color: rgba(248, 250, 252, 0.85);
}

html:not(.dark) .text-neutral-400 {
  color: #64748b;
}

html:not(.dark) .text-neutral-300 {
  color: #334155;
}

html:not(.dark) .text-neutral-200 {
  color: #1e293b;
}

html:not(.dark) .border-neutral-800,
html:not(.dark) .border-neutral-800\/80,
html:not(.dark) .border-neutral-800\/90 {
  border-color: #e2e8f0;
}

html:not(.dark) input[type=number] {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

html:not(.dark) footer {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

/* Print Styles */
@media print {
  header, footer, #printBtn, #shareBtn, #themeToggleBtn, .apr-preset, .down-preset, input[type=range], #viewFrontBtn, #viewHeroBtn {
    display: none !important;
  }
  
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  .shadow-xl, .shadow-2xl {
    box-shadow: none !important;
  }

  .border-neutral-800, .border-neutral-700 {
    border-color: #cccccc !important;
  }

  .lg\:sticky {
    position: static !important;
  }
}
