﻿
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease;
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toast-close:hover {
        color: #333;
    }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    animation: progress 10s linear;
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.success {
    border-left: 4px solid #10b981;
}

    .toast.success .toast-progress {
        color: #10b981;
    }

    .toast.success .toast-title {
        color: #10b981;
    }

.toast.error {
    border-left: 4px solid #ef4444;
}

    .toast.error .toast-progress {
        color: #ef4444;
    }

    .toast.error .toast-title {
        color: #ef4444;
    }

.toast.warning {
    border-left: 4px solid #f59e0b;
}

    .toast.warning .toast-progress {
        color: #f59e0b;
    }

    .toast.warning .toast-title {
        color: #f59e0b;
    }

.toast.info {
    border-left: 4px solid #3b82f6;
}

    .toast.info .toast-progress {
        color: #3b82f6;
    }

    .toast.info .toast-title {
        color: #3b82f6;
    }

@media (max-width: 600px) {
    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
    }
}
