/* ==========================================================================
   CSS Color Generator Styles
   ========================================================================== */

.color-tool-container {
  background: var(--surface-color, #1a1a1a);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Tabs Navigation */
.color-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.color-tabs .nav-link {
  color: var(--default-color, #a0a0a0);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
  border-radius: 0;
}

.color-tabs .nav-link:hover {
  color: var(--heading-color, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}

.color-tabs .nav-link.active {
  color: var(--accent-color, #00ff88);
  background: transparent;
  border-bottom: 2px solid var(--accent-color, #00ff88);
}

.color-tabs .export-btn {
  background: rgba(var(--accent-color-rgb, 0, 255, 136), 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.color-tabs .export-btn:hover {
  background: rgba(var(--accent-color-rgb, 0, 255, 136), 0.2);
  color: #fff !important;
}

/* Form Controls */
.form-control-color {
  width: 100%;
  height: 60px;
  padding: 0.25rem;
  border-radius: 8px;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.form-control-color::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Palette Swatches */
.scale-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--heading-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.preset-palette {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  height: 100%;
}

.preset-palette h6 {
  margin-bottom: 10px;
  color: var(--default-color);
  font-size: 0.85rem;
  text-align: center;
}

.preset-colors {
  display: flex;
  gap: 5px;
}

.preset-color {
  flex: 1;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.preset-color:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.color-scale {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  flex: 1;
  min-width: 60px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-swatch:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.color-swatch span {
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.color-swatch:hover span {
  opacity: 1;
}

/* Gradient Preview */
.gradient-preview {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff0080, #7928ca);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

#gradientCssPreview {
  font-size: 0.85rem;
  word-break: break-all;
}

/* Mixer */
.mix-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #800080;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

/* Range Inputs Custom Styling */
.form-range::-webkit-slider-thumb {
  background: var(--accent-color, #00ff88);
}
.form-range::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.1);
}

/* Custom Pills in Modal */
.custom-pills .nav-link {
  color: var(--default-color);
}
.custom-pills .nav-link.active {
  background-color: var(--accent-color, #00ff88);
  color: #000;
  font-weight: bold;
}

/* Toast override */
.toast {
  background-color: var(--accent-color, #00ff88);
  color: #000;
}
.toast .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

#seedColorText {
  max-width: 120px;
}

.mix-result-group {
  max-width: 250px;
  margin: 0 auto;
}
