/* ==========================================================================
   Visualizer and Teleprompter Animations (Light & Dark Compatible)
   ========================================================================== */

.spectrum-visualizer-box {
    position: relative;
    background: var(--bg-input);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.04);
}

body.theme-dark .spectrum-visualizer-box {
    background: #000000;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

.spectrum-visualizer-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Karaoke Word Highlighting in Light & Dark Mode */
.karaoke-word {
    display: inline-block;
    padding: 0 3px;
    color: var(--text-muted);
    transition: color 0.08s ease, text-shadow 0.08s ease, transform 0.08s ease;
}

.karaoke-word.active {
    color: var(--accent-blue) !important;
    font-weight: 800;
    transform: scale(1.06);
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    border-bottom: 2px solid var(--accent-blue);
}

body.theme-dark .karaoke-word.active {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid #ffffff;
}

/* Minimalist Spinner */
.spinner-light {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
}

body.theme-light .btn-export-main .spinner-light {
    border-top-color: #ffffff;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

.toast-light {
    background: var(--accent-primary);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-elevated);
    color: var(--accent-primary-text);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
