/* ============================================
   FORM CONTROLS - Inputs, selects, etc.
   ============================================ */

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #1a1a28;
  color: #e0e0e0;
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #00c27a;
  box-shadow: 0 0 10px rgba(0, 194, 122, 0.3);
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: "Courier New", monospace;
}

/* ============================================
   RANGE SLIDERS
   ============================================ */

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #333;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00c27a;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 194, 122, 0.5);
  transition: transform 0.2s;
}

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

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00c27a;
  cursor: pointer;
  border: none;
}

/* ============================================
   COLOR INPUTS
   ============================================ */

.color-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

input[type="color"] {
  width: 50px;
  height: 38px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 2px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border-radius: 6px;
  border: 2px solid #444;
}

.color-input-group input[type="text"] {
  flex: 1;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

/* ============================================
   CHECKBOXES
   ============================================ */

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #00c27a;
  cursor: pointer;
}

.control-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, #00c27a, #00995c);
  color: white;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #00ffa3, #00c27a);
  box-shadow: 0 0 20px rgba(0, 194, 122, 0.5);
}

.btn.secondary {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #444;
}

.btn.secondary:hover {
  background: #444;
  border-color: #00c27a;
}

.btn.success {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
}

.btn.success:hover {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.btn.danger {
  background: linear-gradient(135deg, #f44336, #c62828);
  color: white;
}

.btn.danger:hover {
  background: linear-gradient(135deg, #ef5350, #f44336);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
