/* Color Palette Creator Styles */
.palette-creator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Palette Display */
.palette-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.color-swatch {
    flex: 1;
    min-width: 120px;
    height: 180px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: translateY(-5px);
}

.color-display {
    height: 70%;
}

.color-info {
    height: 30%;
    background: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.color-hex {
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Courier New', Courier, monospace;
}

.color-rgb {
    font-size: 12px;
    color: #6c757d;
    font-family: 'Courier New', Courier, monospace;
}

/* Controls Section */
.palette-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .palette-controls {
        grid-template-columns: 1fr;
    }
}

/* Base Color Picker */
.base-color-control {
    margin-bottom: 20px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.color-picker-label {
    font-weight: 500;
    font-size: 14px;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

/* Palette Type Selector */
.palette-type-control {
    margin-bottom: 20px;
}

.palette-type-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

/* Color Adjustments */
.adjustment-controls {
    margin-bottom: 20px;
}

.adjustment-slider {
    margin-bottom: 15px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.slider-name {
    font-weight: 500;
}

.slider-value {
    color: #6c757d;
}

.slider-input {
    width: 100%;
}

/* Action Buttons */
.palette-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.generate-btn {
    background: #0d6efd;
    color: white;
}

.generate-btn:hover {
    background: #0b5ed7;
}

.add-color-btn {
    background: #6c757d;
    color: white;
}

.add-color-btn:hover {
    background: #5c636a;
}

.random-btn {
    background: #198754;
    color: white;
}

.random-btn:hover {
    background: #157347;
}

/* Output Section */
.output-section {
    background: #f1f3f5;
    padding: 15px;
    border-radius: 6px;
}

.output-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.css-output {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: none;
    min-height: 120px;
    margin-bottom: 10px;
}

.copy-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: #5c636a;
}

.copy-btn.copied {
    background: #198754;
}

/* Slider Customization */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #dee2e6;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}