/* Color Picker Styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Main Container */
.color-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  gap: 2rem;
}

/* Picker Section */
.picker-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.color-display {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.color-preview {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  background: #00c8ff;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.color-info h3 {
  color: #00c8ff;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.5rem;
}

.color-formats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.format-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.format-group label {
  color: #888;
  font-weight: 500;
  min-width: 40px;
}

.format-group input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.75rem;
  color: #e0e0e0;
  font-family: 'Quicksand', sans-serif;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  background: rgba(0,200,255,0.2);
  border: 1px solid #00c8ff;
  border-radius: 8px;
  padding: 0.5rem;
  color: #00c8ff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.copy-btn:hover {
  background: #00c8ff;
  color: #0b0c10;
  transform: scale(1.1);
}

/* Picker Controls */
.picker-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.color-wheel-container,
.brightness-container {
  position: relative;
}

#color-wheel,
#brightness-bar {
  border-radius: 12px;
  cursor: crosshair;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.wheel-pointer,
.brightness-pointer {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
}

/* Quick Colors */
.quick-colors h4 {
  color: #00c8ff;
  margin-bottom: 1rem;
  font-weight: 500;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px;
}

.quick-color {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.quick-color:hover {
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
}

/* Palette Section */
.palette-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.palette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.palette-header h3 {
  color: #00c8ff;
  margin: 0;
  font-weight: 500;
}

.palette-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#palette-type {
  background: rgba(0,0,0,0.3);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.75rem;
  color: #e0e0e0;
  font-family: 'Quicksand', sans-serif;
}

.generate-btn,
.random-btn {
  background: linear-gradient(45deg, #00c8ff, #00fff7);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: #0b0c10;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.random-btn {
  padding: 0.75rem;
  font-size: 1.2rem;
}

.generate-btn:hover,
.random-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,200,255,0.4);
}

/* Palette Display */
.palette-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  min-height: 120px;
}

.palette-color {
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.palette-color:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.palette-color-info {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.5rem;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Action Buttons */
.palette-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.export-btn,
.save-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.export-btn {
  background: rgba(249,199,79,0.2);
  border: 1px solid #f9c74f;
  color: #f9c74f;
}

.save-btn {
  background: rgba(0,255,247,0.2);
  border: 1px solid #00fff7;
  color: #00fff7;
}

.export-btn:hover {
  background: #f9c74f;
  color: #0b0c10;
  transform: translateY(-2px);
}

.save-btn:hover {
  background: #00fff7;
  color: #0b0c10;
  transform: translateY(-2px);
}

/* Saved Palettes */
.saved-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.saved-section h3 {
  color: #00c8ff;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.saved-palettes {
  display: grid;
  gap: 1rem;
}

.saved-palette {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  align-items: center;
}

.saved-palette-colors {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.saved-palette-color {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
}

.delete-palette {
  background: rgba(255,100,100,0.2);
  border: 1px solid #ff6464;
  border-radius: 6px;
  padding: 0.5rem;
  color: #ff6464;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-palette:hover {
  background: #ff6464;
  color: white;
}

/* History Section */
.history-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.history-section h3 {
  color: #00c8ff;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.color-history {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  margin-bottom: 1.5rem;
}

.history-color {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.history-color:hover {
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
}

.clear-btn {
  background: rgba(255,100,100,0.2);
  border: 1px solid #ff6464;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: #ff6464;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: #ff6464;
  color: white;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .color-container {
    padding: 1rem;
  }
  
  .color-display {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .color-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  .picker-controls {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .palette-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .palette-controls {
    justify-content: center;
  }
  
  .palette-display {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .palette-actions {
    flex-direction: column;
  }
  
  .export-btn,
  .save-btn {
    justify-content: center;
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,200,255,0.95);
  color: #0b0c10;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: rgba(0,255,247,0.95);
}

.toast.error {
  background: rgba(255,100,100,0.95);
  color: white;
}