
/* ===== Theme Selector Dropdown ===== */
.theme-selector-wrapper {
    position: relative;
}

.theme-selector-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    overflow: hidden;
}

.theme-selector-dropdown.show {
    display: block;
}

.theme-selector-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.theme-selector-header span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-selector-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.theme-option:last-child {
    border-bottom: none;
}

.theme-option:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.theme-option.active {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.08);
    font-weight: 600;
}

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

.theme-option .theme-option-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-option .theme-option-check {
    font-size: 14px;
    color: var(--accent-primary);
    opacity: 0;
}

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

.theme-option .theme-option-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.theme-option:hover .theme-option-actions {
    opacity: 1;
}

.theme-option .theme-option-actions .btn-icon {
    padding: 2px 4px;
    font-size: 12px;
}

.theme-option .theme-option-actions .btn-theme-delete-inline {
    color: var(--error);
}

.theme-option .theme-option-actions .btn-theme-delete-inline:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.theme-option .theme-color-dots {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.theme-option .theme-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.theme-selector-footer {
    padding: 8px 10px;
    border-top: 1px solid var(--border-primary);
}

/* 테마 섹션 타이틀 내 추가 버튼 */
.btn-new-theme {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.btn-new-theme:hover {
    background: var(--accent-primary);
    color: #fff;
}