﻿#toast-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
}

.toast {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 25px rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
    min-width: 400px;
    position: relative;
    overflow: hidden;
}

    .toast::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: currentColor;
        animation: progress 5s linear;
        width: 100%;
    }

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.success {
    border-left-color: #10b981;
    color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
    color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
    color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
    color: #3b82f6;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.toast.info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    color: #2c3e50;
}

.toast-message {
    font-size: 0.95rem;
    color: #676E8A;
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .toast-close:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #2c3e50;
    }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
    }
}

img.imagelogo {
    width: 100%;
    height: 100% !important;
}

.ri-spin {
    display: inline-block; /* ensure transform works */
    animation: ri-spin 1s linear infinite;
    transform-origin: center center;
    /* size like fa-lg */
    font-size: 1.25rem;
}

@keyframes ri-spin {
    100% {
        transform: rotate(360deg);
    }
}