/**
 * Toast Notification Styles
 * Lightweight notification system
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    min-width: 300px;
}

[data-theme="dark"] .toast {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    flex-shrink: 0;
    border-radius: 4px;
}

.toast-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.toast-close:focus {
    outline: none;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

[data-theme="dark"] .toast-success {
    background: rgba(16, 185, 129, 0.1);
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .toast-error {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-error .toast-message {
    color: #dc2626;
    font-weight: 500;
}

[data-theme="dark"] .toast-error .toast-message {
    color: #fca5a5;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

[data-theme="dark"] .toast-warning {
    background: rgba(245, 158, 11, 0.1);
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

[data-theme="dark"] .toast-info {
    background: rgba(59, 130, 246, 0.1);
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Animation for multiple toasts */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

