/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    background: var(--bg-primary, #ffffff);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    width: 100%;
    transform-origin: left;
    animation: toastProgress 4s linear forwards;
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #212529);
    line-height: 1.5;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary, #6c757d);
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary, #212529);
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
    background: #ffffff;
    color: #10b981;
}

.dark-mode .toast-success {
    background: #1f2937;
    color: #34d399;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dark-mode .toast-success .toast-icon {
    background: rgba(52, 211, 153, 0.2);
}

.toast-error {
    border-left-color: #ef4444;
    background: #ffffff;
    color: #ef4444;
}

.dark-mode .toast-error {
    background: #1f2937;
    color: #f87171;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dark-mode .toast-error .toast-icon {
    background: rgba(248, 113, 113, 0.2);
}

.toast-warning {
    border-left-color: #f59e0b;
    background: #ffffff;
    color: #f59e0b;
}

.dark-mode .toast-warning {
    background: #1f2937;
    color: #fbbf24;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.dark-mode .toast-warning .toast-icon {
    background: rgba(251, 191, 36, 0.2);
}

.toast-info {
    border-left-color: #3b82f6;
    background: #ffffff;
    color: #3b82f6;
}

.dark-mode .toast-info {
    background: #1f2937;
    color: #60a5fa;
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dark-mode .toast-info .toast-icon {
    background: rgba(96, 165, 250, 0.2);
}

/* Progress bar animation */
@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

