/**
 * Custom Spectrum.js Color Picker Styling
 * Modernizes the color picker swatch appearance
 */

/* Modern swatch box styling */
.sp-replacer {
    width: 56px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 8px;
    transition: all 0.2s ease;
}

.sp-replacer:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.sp-replacer:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Color preview box inside replacer */
.sp-preview {
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Input field styling */
.sp-input {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.sp-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Spectrum container (the popup) */
.sp-container {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Buttons in spectrum */
.sp-cancel,
.sp-choose {
    border-radius: 4px;
    font-size: 12px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.sp-cancel {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.sp-cancel:hover {
    background-color: #efefef;
    border-color: #d0d0d0;
}

.sp-choose {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
}

.sp-choose:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

/* Palette colors styling */
.sp-palette-row-selection .sp-palette-input-container {
    border-radius: 4px;
}

.sp-palette-input-container input {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}
