/**
 * Color Picker Display Styles
 * Styles for displaying color previews instead of color codes
 */

/* Color input wrapper */
.color-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Color display box */
.color-preview-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #ced4da;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-preview-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Color hex input */
.color-hex-input {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    width: 100px;
    margin-right: 15px;
}

/* Color palette container */
.color-palette-container {
    margin-top: 15px;
}

/* Color palette */
.color-palette {
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: inline-block;
}

/* Color option */
.color-option {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 3px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .color-preview-box {
        margin-bottom: 15px;
    }

    .color-hex-input {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%;
    }

    .btn {
        margin-top: 10px;
        width: 100%;
    }
}
