/* Color Palette Generator Styles */

/* Color Picker Styles */
.color-picker {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* Palette Container */
.palette-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    min-height: 150px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
}

/* Color Swatch */
.color-swatch {
    width: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-preview {
    height: 100px;
    width: 100%;
}

.color-info {
    padding: 10px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-hex {
    font-family: monospace;
    font-size: 14px;
}

.color-actions {
    display: flex;
    gap: 5px;
}

.color-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.copy-color:hover {
    background-color: #e9ecef;
}

.remove-color:hover {
    background-color: #f8d7da;
    color: #dc3545;
}

/* Harmony Examples */
.harmony-example {
    height: 50px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
}

.complementary-example {
    background: linear-gradient(to right, #4287f5 50%, #f54242 50%);
}

.analogous-example {
    background: linear-gradient(to right, #4287f5 33.33%, #42b0f5 33.33%, #42f5d9 66.66%, #42f5d9 100%);
}

.triadic-example {
    background: linear-gradient(to right, #4287f5 33.33%, #f542f2 33.33%, #f542f2 66.66%, #f5c642 66.66%, #f5c642 100%);
}

.tetradic-example {
    background: linear-gradient(to right, #4287f5 25%, #f542f2 25%, #f542f2 50%, #f5c642 50%, #f5c642 75%, #42f56f 75%);
}

.monochromatic-example {
    background: linear-gradient(to right, #4287f5 20%, #6ba1f7 20%, #6ba1f7 40%, #94bbf9 40%, #94bbf9 60%, #bdd5fb 60%, #bdd5fb 80%, #e6effd 80%);
}

/* Export Code Textarea */
#export-code {
    font-family: monospace;
    resize: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .palette-container {
        justify-content: center;
    }

    .color-swatch {
        width: 100px;
    }

    .color-preview {
        height: 80px;
    }

    .harmony-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .form-check-inline {
        margin-right: 0;
    }
}

/* Custom Button Styles */
#generate-palette {
    background-color: #4287f5;
    border-color: #4287f5;
}

#generate-palette:hover {
    background-color: #2d6fd9;
    border-color: #2d6fd9;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
}
