/* Toast Notification System - Notion Style */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--theme-bg-card, #151515);
    border: 1px solid var(--theme-border, #2a2a2a);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Toast types - icons only have color */
.toast-success {
    border-color: var(--theme-border, #2a2a2a);
}

.toast-success .toast-icon {
    color: var(--icon-green, #0F7B6C);
    background: rgba(15, 123, 108, 0.15);
}

.toast-error {
    border-color: var(--theme-border, #2a2a2a);
}

.toast-error .toast-icon {
    color: var(--icon-red, #E03E3E);
    background: rgba(224, 62, 62, 0.15);
}

.toast-warning {
    border-color: var(--theme-border, #2a2a2a);
}

.toast-warning .toast-icon {
    color: var(--icon-orange, #F7B731);
    background: rgba(247, 183, 49, 0.15);
}

.toast-info {
    border-color: var(--theme-border, #2a2a2a);
}

.toast-info .toast-icon {
    color: var(--icon-blue, #2EAADC);
    background: rgba(46, 170, 220, 0.15);
}

.toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-primary, #f5f5f5);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--theme-text-secondary, #cfcfcf);
    line-height: 1.4;
}

.toast-action {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--theme-bg-elevated, #1a1a1a);
    border: 1px solid var(--theme-border, #2a2a2a);
    border-radius: 6px;
    color: var(--theme-text-secondary, #cfcfcf);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toast-action:hover {
    background: var(--theme-bg-surface, #1a1a1a);
    color: var(--theme-text-primary, #f5f5f5);
}

.toast-dismiss {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--theme-text-muted, #6f6f6f);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.toast-dismiss:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--theme-text-secondary, #cfcfcf);
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 0 0 12px 12px;
}

.toast-success .toast-progress-bar {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.toast-error .toast-progress-bar {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.toast-warning .toast-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.toast-info .toast-progress-bar {
    background: var(--icon-blue, #2EAADC);
}

/* Light theme */
    background: #ffffff;
    border-color: #e5e5e5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

    color: #111111;
}

    color: rgba(71, 85, 105, 0.9);
}

    color: rgba(71, 85, 105, 0.5);
}

    background: rgba(0, 0, 0, 0.05);
    color: rgba(71, 85, 105, 0.8);
}

    background: #f7f7f7;
    border-color: #e5e5e5;
    color: #2b2b2b;
}

    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 480px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
    
    .toast-notification {
        transform: translateY(120%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
    
    .toast-notification.hide {
        transform: translateY(120%);
    }
}
