/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    pointer-events: auto;
    animation: toastIn 0.4s ease forwards;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    flex-shrink: 0;
}

.toast-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 0 var(--radius-md);
    animation: timerShrink 5s linear forwards;
}

@keyframes timerShrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast-success {
    border-left: 4px solid var(--accent-green);
}

.toast-success .toast-timer {
    background: var(--accent-green);
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-timer {
    background: #f59e0b;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-timer {
    background: #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-timer {
    background: #3b82f6;
}


/* ============================================
   Export Modal
   ============================================ */
.export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.export-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.export-modal h3 {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.export-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: var(--space-lg) 0;
}

.export-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

.export-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.export-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
    line-height: 1.6;
    color: var(--text-secondary);
}

