/* ===================================
   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 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-selector-toggle:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.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% + 4px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    z-index: 9999;
    overflow: hidden;
}

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

.theme-dropdown-header {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

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

.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #374151;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s ease;
}

.theme-option:hover {
    background: #f3f4f6;
}

.theme-option.active {
    background: #eff6ff;
}

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

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

.theme-option-name {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
}

.theme-option-desc {
    font-size: 10px;
    color: #6b7280;
    margin-top: 1px;
}

.theme-option-check {
    font-size: 11px;
    color: #2563eb;
    opacity: 0;
    transition: opacity 0.1s 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;
}
