/**
 * Enhanced Color Picker Styles
 * Professional color picker interface for admin settings
 */

/* 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-display {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-display: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;
}

/* 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);
}

/* Color preview */
.color-preview-container {
    margin-top: 15px;
}

.color-preview {
    transition: background-color 0.3s ease;
    width: 100%;
    height: 40px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced form group for color settings */
.form-group-color {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group-color .form-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: #495057;
    font-size: 1rem;
}

/* Color setting card */
.color-setting-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.color-setting-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Color setting title */
.color-setting-title {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #343a40;
    font-size: 1.1rem;
}

.color-setting-title i {
    margin-right: 10px;
    color: #6c757d;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .color-display {
        margin-bottom: 15px;
    }

    .color-hex-input {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%;
    }

    .btn {
        margin-top: 10px;
        width: 100%;
    }

    .color-setting-card {
        margin-bottom: 15px;
        padding: 15px;
    }
}
