/* ========================================
   EasyFile Theme Switcher Widget
   Matches easyfile-ai-prompt-builder styling
   ======================================== */

.theme-switcher-btn {
    position: fixed;
    bottom: 44px;
    right: var(--ef-space-12);
    z-index: 45;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    box-shadow: var(--ef-shadow-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ef-text-muted);
    transition: all 150ms;
}

.theme-switcher-btn:hover {
    background: var(--ef-color-primary-bg);
    color: var(--ef-color-primary);
    border-color: var(--ef-color-primary);
}

.theme-panel {
    position: fixed;
    bottom: 88px;
    right: var(--ef-space-12);
    z-index: 45;
    width: 220px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-10);
    box-shadow: var(--ef-shadow-2);
    padding: var(--ef-space-16);
    animation: scaleIn 150ms;
    display: flex;
    flex-direction: column;
    gap: var(--ef-space-16);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.theme-section-label {
    font-size: var(--ef-text-11);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ef-text-muted);
    margin-bottom: var(--ef-space-8);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: var(--ef-space-8);
    padding: var(--ef-space-12) var(--ef-space-8);
    border-radius: var(--ef-radius-4);
    cursor: pointer;
    font-size: var(--ef-text-13);
    color: var(--ef-text);
    transition: all 150ms;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--ef-font);
}

.theme-option:hover {
    background: var(--ef-surface-2);
}

.theme-option.active {
    color: var(--ef-color-primary);
    font-weight: 600;
}

.theme-swatch {
    width: 20px;
    height: 20px;
    border-radius: var(--ef-radius-4);
    border: 1.5px solid var(--ef-border);
    flex-shrink: 0;
}

.theme-option.active .theme-swatch {
    border-color: var(--ef-color-primary);
    box-shadow: 0 0 0 2px var(--ef-color-primary-bg);
}

.theme-divider {
    height: 1px;
    background: var(--ef-border);
    margin: var(--ef-space-12) 0;
}
