/* مكون تخصيص الألوان – مثل Color Palette في UI */
.theme-configurator-wrapper {
    position: relative;
}

.theme-palette-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--materio-border, rgba(10, 34, 64, 0.15));
    background: transparent;
    color: var(--materio-text, #1a1d21);
    transition: all 0.2s ease;
    cursor: pointer;
}

.theme-palette-btn:hover {
    background: var(--materio-primary-light, rgba(10, 34, 64, 0.08));
    color: var(--materio-primary);
    border-color: var(--materio-primary);
}

.theme-palette-btn .bi-palette {
    font-size: 1.25rem;
}

.theme-configurator-dropdown {
    position: fixed !important;
    top: 4.5rem !important;
    inset-inline-end: 8rem !important;
    inset-inline-start: auto !important;
    min-width: 220px;
    background: var(--materio-paper, #fff);
    border: 1px solid var(--materio-border);
    border-radius: var(--materio-radius-lg, 0.75rem);
    box-shadow: 0 8px 24px rgba(10, 34, 64, 0.12);
    z-index: 9999;
    animation: themeDropdownFade 0.15s ease-out;
    display: none !important;
}

.theme-configurator-dropdown.show {
    display: block !important;
}

.theme-configurator-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    cursor: default;
    display: none !important;
}

.theme-configurator-backdrop.show {
    display: block !important;
}

.theme-configurator-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--materio-border);
}

.theme-configurator-body {
    padding: 1rem;
}

.theme-color-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-color-btn:hover {
    transform: scale(1.15);
}

.theme-color-btn.active {
    border-color: var(--materio-text);
    box-shadow: 0 0 0 2px var(--materio-paper);
}

@keyframes themeDropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
