/* Theme Customizer Panel */
.theme-customizer {
    position: fixed;
    top: 50%;
    right: -320px;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 0 0 12px;
    padding: 24px;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    font-family: 'Inter', sans-serif;
    color: #fff;
    max-height: 90vh;
    overflow-y: auto;
}

.theme-customizer.open {
    right: 0;
}

/* Floating Actions Container (Overrides back-floating) */
.floating-actions-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    align-items: center;
    flex-wrap: wrap; /* Wraps on mobile */
}

@media(max-width: 600px) {
    .floating-actions-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

.back-floating {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    margin: 0 !important;
}

.customizer-toggle {
    background: rgba(8, 8, 8, 0.9);
    color: var(--gold, #F5C842);
    border: 1px solid var(--gold, #F5C842);
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.customizer-toggle:hover {
    background: var(--gold, #F5C842);
    color: #000;
    transform: translateY(-3px);
}

.customizer-toggle i {
    animation: spin 4s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Panel Internals */
.theme-customizer h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.close-customizer {
    cursor: pointer;
    font-size: 1.2rem;
    color: #aaa;
    transition: color 0.3s;
}
.close-customizer:hover { color: #fff; }

.customizer-section {
    margin-bottom: 24px;
}

.customizer-section h4 {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #fff;
    transform: scale(1.1);
}

/* Custom Color Picker */
.custom-color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}
.custom-color-picker label {
    font-size: 0.8rem;
    color: #ccc;
    flex-grow: 1;
}
.custom-color-picker input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
}
.custom-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.custom-color-picker input[type="color"]::-webkit-color-swatch {
    border: 1px solid #fff;
    border-radius: 50%;
}

/* Font Select */
.font-select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.font-select option {
    background: #111;
    color: #fff;
}

/* Save Button */
.save-config-btn {
    width: 100%;
    padding: 12px;
    background: #25D366; /* WhatsApp Green */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.save-config-btn:hover {
    background: #1ebc5a;
    transform: translateY(-2px);
}
