/* ===== BEAUTIFUL TOAST NOTIFICATIONS ===== */
/* test 2 */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: toastSlideIn 0.4s cubic-bezier(0.21, 0.61, 0.35, 1);
    transform-origin: right bottom;
    pointer-events: auto;
    border-left: 4px solid var(--primary-500);
    position: relative;
    overflow: hidden;
    max-width: 380px;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-500);
    opacity: 0.1;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-success::before {
    background: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-error::before {
    background: var(--error);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-warning::before {
    background: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-info::before {
    background: var(--info);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    color: white;
}

.toast-success .toast-icon {
    background: var(--success);
}

.toast-error .toast-icon {
    background: var(--error);
}

.toast-warning .toast-icon {
    background: var(--warning);
}

.toast-info .toast-icon {
    background: var(--info);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-message {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 0;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Progress bar for auto-dismiss */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-500);
    width: 100%;
    transform-origin: left;
    animation: toastProgress 5s linear forwards;
}

.toast-success .toast-progress {
    background: var(--success);
}

.toast-error .toast-progress {
    background: var(--error);
}

.toast-warning .toast-progress {
    background: var(--warning);
}

.toast-info .toast-progress {
    background: var(--info);
}

/* Animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .toast {
        max-width: none;
    }
}