﻿.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.toast-message {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 42px 14px 16px;
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    pointer-events: auto;
    animation: toast-slide-in 0.3s ease-out;
}

.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.toast-content {
    flex: 1;
    color: #263238;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

    .toast-close:hover {
        color: #111827;
    }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: toast-progress linear forwards;
}

/* Success */

.toast-success {
    border-left: 4px solid #16a34a;
}

    .toast-success .toast-icon {
        color: #16a34a;
        background: #dcfce7;
    }

    .toast-success .toast-progress {
        background: #16a34a;
    }

/* Error */

.toast-error {
    border-left: 4px solid #dc2626;
}

    .toast-error .toast-icon {
        color: #dc2626;
        background: #fee2e2;
    }

    .toast-error .toast-progress {
        background: #dc2626;
    }

/* Warning */

.toast-warning {
    border-left: 4px solid #d97706;
}

    .toast-warning .toast-icon {
        color: #d97706;
        background: #fef3c7;
    }

    .toast-warning .toast-progress {
        background: #d97706;
    }

/* Info */

.toast-info {
    border-left: 4px solid #2563eb;
}

    .toast-info .toast-icon {
        color: #2563eb;
        background: #dbeafe;
    }

    .toast-info .toast-progress {
        background: #2563eb;
    }

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 576px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}
