/* Toast Container - Fixed Top Right */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allows clicking through the container area */
}

/* Individual Toast Cards */
.toast-card {
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-left: 5px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.3s forwards, fadeOut 0.3s 3.7s forwards;
    pointer-events: auto;
    /* Re-enable clicks on the toast itself */
    cursor: pointer;
}

/* Toast Variants */
.toast-success {
    border-left-color: #2ecc71;
}

.toast-success .toast-icon {
    color: #2ecc71;
}

.toast-error {
    border-left-color: #e74c3c;
}

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

.toast-warning {
    border-left-color: #f1c40f;
}

.toast-warning .toast-icon {
    color: #f1c40f;
}

.toast-info {
    border-left-color: #3498db;
}

.toast-info .toast-icon {
    color: #3498db;
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* MODAL CONFIRMAÇÃO & AVISO CUSTOMIZADO */
/* Reuses existing .modal-overlay and .modal-content from style.css but adds specifics */
#modal-aviso,
#modal-confirmacao {
    z-index: 10000 !important;
    /* Above everything */
}