/* ===================================
   THEME SELECTOR DROPDOWN
   Clean, minimal theme picker
   =================================== */

.theme-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.theme-selector-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--theme-text-nav, #e0e0e0);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.theme-selector-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.theme-selector-toggle .theme-name {
    display: none;
}

@media (min-width: 640px) {
    .theme-selector-toggle .theme-name {
        display: inline;
    }
}

.theme-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.theme-selector-toggle[aria-expanded="true"] .theme-chevron {
    transform: rotate(180deg);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--theme-bg-secondary, #1f1f1f);
    border: 1px solid var(--theme-border-medium, rgba(255,255,255,0.1));
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 9999;
    overflow: hidden;
}

.theme-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown-header {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-text-muted, #888);
    border-bottom: 1px solid var(--theme-border-light, rgba(255,255,255,0.06));
}

.theme-options {
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--theme-text-primary, #f0f0f0);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.theme-option.active {
    background: rgba(255, 255, 255, 0.1);
}

.theme-option-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.theme-option-info {
    flex: 1;
    min-width: 0;
}

.theme-option-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text-heading, #fff);
}

.theme-option-desc {
    font-size: 11px;
    color: var(--theme-text-muted, #888);
    margin-top: 1px;
}

.theme-option-check {
    font-size: 12px;
    color: var(--theme-text-accent, #60a5fa);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.theme-option.active .theme-option-check {
    opacity: 1;
}

.theme-options::-webkit-scrollbar {
    width: 5px;
}

.theme-options::-webkit-scrollbar-track {
    background: transparent;
}

.theme-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
