/* Custom CSS enhancements on top of Tailwind CSS */

/* Global Clean Dark Input & Dropdown Styling */
input[type="text"],
input[type="number"],
select {
  background-color: #090d1a !important;
  color: #ffffff !important;
  border: 1px solid #1e293b !important;
}

input[type="text"]:focus,
select:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 1px #6366f1 !important;
  outline: none !important;
}

input[type="text"]::placeholder {
  color: #475569 !important;
}

select option {
  background-color: #090d1a !important;
  color: #ffffff !important;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Style Selection Cards */
.style-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-card:hover {
  background: rgba(26, 34, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.style-card.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.16);
  box-shadow: 0 0 0 1px #6366f1, 0 4px 20px rgba(99, 102, 241, 0.25);
}

/* Segmented Control Buttons */
.seg-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.seg-btn:hover {
  color: #ffffff;
}

.seg-btn.active {
  background: #232d4b;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Color Chips */
.chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--chip);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  transform: scale(1.18);
}

.chip.active {
  border-color: #ffffff;
  transform: scale(1.22);
  box-shadow: 0 0 12px var(--chip);
}

/* Custom Color input */
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* Timeline scrubber handle */
#timelineWrap:hover #progressHandle {
  opacity: 1;
}

/* Canvas Viewport */
#renderCanvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
