/* Toast customizado */
#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: 380px;
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12), 0 1.5px 4px 0 rgba(0, 0, 0, 0.08);
    padding: 1.1rem 1.3rem 1.1rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    gap: 1rem;
    animation: toastIn 0.4s cubic-bezier(.4, 0, .2, 1);
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    font-size: 1.3em;
    flex-shrink: 0;
}

.toast-error {
    background: #fff;
}

.toast-error .toast-icon {
    background: #ffeaea;
    color: #e53e3e;
}

.toast-success .toast-icon {
    background: #e6f9f0;
    color: #38a169;
}

.toast-info .toast-icon {
    background: #e8f4fd;
    color: #3182ce;
}

.toast-warning .toast-icon {
    background: #fff7e6;
    color: #dd6b20;
}

.toast .toast-close {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    pointer-events: all;
}

.toast .toast-close:hover {
    opacity: 1;
}

.toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.toast-success .toast-progress {
    background: rgba(56, 161, 105, 0.2);
}

.toast-error .toast-progress {
    background: rgba(229, 62, 62, 0.2);
}

.toast-info .toast-progress {
    background: rgba(49, 130, 206, 0.2);
}

.toast-warning .toast-progress {
    background: rgba(221, 107, 32, 0.2);
}

@media (max-width: 600px) {
    #toast-container {
        right: 0.5rem;
        top: 0.5rem;
    }

    .toast {
        min-width: 220px;
        max-width: 95vw;
        font-size: 0.98rem;
    }
}