:root {
  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.4);
  --solar-gold: #f59e0b;
  --solar-glow: rgba(245, 158, 11, 0.45);
  --energy-green: #10b981;
  --energy-glow: rgba(16, 185, 129, 0.35);
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px var(--solar-glow);
}

/* 3D Viewer Container */
#solar-canvas-container {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #090d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

#solar-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

#solar-canvas-container canvas:active {
  cursor: grabbing;
}

/* UI Badges & Accents */
.badge-solar {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.badge-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.gradient-text-solar {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Range Slider Styling */
input[type=range] {
  -webkit-appearance: none;
  background: #1e293b;
  height: 6px;
  border-radius: 4px;
  outline: none;
}

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

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

/* 3D Overlay Controls */
.viewer-overlay {
  pointer-events: none;
}

.viewer-overlay > * {
  pointer-events: auto;
}

/* Subtle glow pulse */
@keyframes energyPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.pulse-glow {
  animation: energyPulse 3s infinite ease-in-out;
}
