/* Simple Color Picker - Only changes primary color */
.simple-color-picker {
    position: fixed;
    top: 92%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: 'Arial', sans-serif;
}

.color-toggle {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary, linear-gradient(135deg, #ff6b35, #e55a2b));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.color-toggle i {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.color-toggle:hover i {
    transform: rotate(180deg);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Color Switch Button */
.color-switch {
    width: 50px;
    height: 50px;
    background: var(--switch-button-color, linear-gradient(135deg, #2d5a2d, #1e3e1e));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.color-switch:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.color-switch i {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.color-switch:hover i {
    transform: rotate(90deg);
}

.color-panel {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 350px;
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.color-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-90%) translateX(0);
}

.color-header {
    background: var(--gradient-primary, linear-gradient(135deg, #ff6b35, #e55a2b));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.color-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.color-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.color-content {
    padding: 20px;
}

.color-preview {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.current-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-right: 15px;
}

.color-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.color-input-container {
    margin-bottom: 20px;
    text-align: center;
}

.color-input-container input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.color-input-container input[type="color"]:hover {
    border-color: var(--primary-color, #ff6b35);
}

.color-presets h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.preset-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.preset-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.preset-color:hover {
    transform: scale(1.1);
    border-color: #333;
}

.preset-color.active {
    border-color: #333;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

.color-actions {
    display: flex;
    gap: 10px;
}

.reset-color,
.apply-color {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.reset-color {
    background: #6c757d;
    color: white;
}

.reset-color:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.apply-color {
    background: var(--gradient-primary, linear-gradient(135deg, #ff6b35, #e55a2b));
    color: white;
}

.apply-color:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-color-picker {
        right: 10px;
        top: 80%;
    }
    
    .color-panel {
        width: 200px;
        right: 50px;
        max-height: 300px;
    }
    
    .color-toggle {
        width: 40px;
        height: 40px;
    }
    
    .color-toggle i {
        font-size: 16px;
    }
    
    .color-header {
        padding: 10px;
    }
    
    .color-header h3 {
        font-size: 14px;
    }
    
    .color-content {
        padding: 10px;
    }
    
    .color-preview {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .current-color {
        width: 25px;
        height: 25px;
    }
    
    .color-value {
        font-size: 12px;
    }
    
    .color-input-container input[type="color"] {
        height: 30px;
    }
    
    .preset-colors {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .preset-color {
        width: 25px;
        height: 25px;
    }
    
    .reset-color,
    .apply-color {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .simple-color-picker {
        right: 5px;
        top: 75%;
    }
    
    .color-panel {
        width: 160px;
        right: 40px;
        max-height: 250px;
    }
    
    .color-toggle {
        width: 35px;
        height: 35px;
    }
    
    .color-toggle i {
        font-size: 14px;
    }
    
    .color-header {
        padding: 8px;
    }
    
    .color-header h3 {
        font-size: 12px;
    }
    
    .color-content {
        padding: 8px;
    }
    
    .color-preview {
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .current-color {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .color-value {
        font-size: 10px;
    }
    
    .color-input-container input[type="color"] {
        height: 25px;
    }
    
    .preset-colors {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .preset-color {
        width: 20px;
        height: 20px;
    }
    
    .reset-color,
    .apply-color {
        padding: 4px 8px;
        font-size: 10px;
    }
}
