﻿/* ===== TOASTR.js - Visual Customizado ===== */

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
}

    #toast-container > .toast {
        margin-bottom: 1rem;
    }

.toast {
    margin-top: 80px !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: default;
    padding: 20px 45px 20px 20px !important; /* 🔥 padding-right maior para espaço do X */
    border-radius: 8px !important;
    font-family: 'Saira', sans-serif;
    font-size: 16px;
    font-weight: 400;
    min-height: 70px !important;
    display: flex;
    align-items: center;
    position: relative;
}

    .toast:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    }

/* Tipos toastr */
.toast-info {
    background-color: #84BEEA !important;
    width: 350px !important;
}

.toast-success {
    background-color: #8DC18A !important;
    width: 350px !important;
}

.toast-error {
    background-color: #EA6D70 !important;
    width: 400px !important;
}

.toast-warning {
    background-color: #E8CE6A !important;
    width: 400px !important;
}

/* Texto toastr */
.toast .toast-message {
    color: #181818;
    margin: 0;
}

.toast .toast-close-button {
    position: absolute !important;
    right: 12px !important;
    top: 12px !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    font-size: 1.4rem !important;
    line-height: 1.2rem !important;
    color: #000 !important;
    opacity: 0.8 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .toast .toast-close-button:hover {
        opacity: 1 !important;
    }

#toast-container > .toast-error,
#toast-container > .toast-success,
#toast-container > .toast-info,
#toast-container > .toast-warning {
    background-image: none !important;
    padding-left: 20px !important;
}


/* ===== BOOTSTRAP TOAST - Visual Harmonizado ===== */
.bootstrap-toast {
    margin-top: 80px !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: default;
    padding: 20px 45px 20px 20px !important; 
    border-radius: 8px !important;
    font-family: 'Saira', sans-serif;
    font-size: 16px;
    font-weight: 400;
    width: 350px;
    min-height: 70px !important;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
    position: relative;
}

    .bootstrap-toast .toast-body {
        color: #181818;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Tipos bootstrap-toast */
    .bootstrap-toast.toast-success {
        background-color: #8DC18A !important;
    }

    .bootstrap-toast.toast-error {
        background-color: #EA6D70 !important;
    }

    .bootstrap-toast.toast-info {
        background-color: #84BEEA !important;
    }

    .bootstrap-toast.toast-warning {
        background-color: #E8CE6A !important;
    }

    .bootstrap-toast .btn-close {
        position: absolute;
        right: 12px;
        top: 12px;
        width: 1.2rem !important;
        height: 1.2rem !important;
        font-size: 1.4rem !important;
        opacity: 0.8 !important;
        filter: none !important;
        cursor: pointer;
        background: transparent !important;
        border: none !important;
        color: #000 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .bootstrap-toast .btn-close::before {
            content: "×";
            font-size: 1.4rem;
            line-height: 1.2rem;
        }

        .bootstrap-toast .btn-close:hover {
            opacity: 1 !important;
        }

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
