.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    transform: translateY(100%);
    animation: slideUpIn 0.4s ease forwards;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.toast:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.toast.success {
    border-bottom: 3px solid #10b981;
}

.toast.error {
    border-bottom: 3px solid #ef4444;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-content {
    flex: 1;
}

.toast-message {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    font-family: var(--font-family);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.2;
    animation: progress 5s linear;
}

.toast-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.toast:hover .toast-close {
    opacity: 1;
}

.toast-close:hover {
    color: #4b5563;
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}