/* Import Wizard Styles */
.import-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.import-wizard-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.import-wizard-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.wizard-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252525;
}

.wizard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.wizard-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.wizard-close-btn:hover {
    color: #fff;
}

.wizard-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.step-container {
    display: none;
    height: 100%;
    flex-direction: column;
}

.step-container.active {
    display: flex;
}

/* Step 1: Input */
.url-input-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.url-input {
    flex: 1;
    padding: 12px;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:disabled {
    background: #4b5563;
    cursor: not-allowed;
}

/* Step 2: Fetching/Loading */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Step 4: Song List & Tagging */
.song-list-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 6px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
    background: #222;
    gap: 15px;
}

.song-item:last-child {
    border-bottom: none;
}

.song-thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

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

.song-title {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.song-artist {
    color: #888;
    font-size: 0.85rem;
}

.song-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.category-select {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.exclude-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.wizard-footer {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #252525;
}

.btn-secondary {
    background: #4b5563;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #374151;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #888;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.tag-bulk-actions {
    margin-bottom: 15px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-bulk-label {
    color: #aaa;
    font-size: 0.9rem;
}