* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #050505;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

canvas {
  display: block;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* Custom checkbox styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

input[type="checkbox"]:checked {
  background: #fff;
  border-color: #fff;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  margin-top: -5.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

input[type="range"]::-moz-range-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Details/summary styling */
details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '›';
  display: inline-block;
  margin-right: 8px;
  font-size: 14px;
  transition: transform 0.15s ease;
  color: rgba(255,255,255,0.3);
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* File input styling */
input[type="file"] {
  font-size: 11px !important;
  color: rgba(255,255,255,0.5) !important;
}

input[type="file"]::file-selector-button {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  margin-right: 10px;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s ease;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(255,255,255,0.1);
}

/* Select dropdown styling */
select {
  outline: none;
}

select option {
  background: #0a0a0a;
  color: #fff;
}
