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

.toast {
    font-weight: 500;
    z-index: 999999;
    position: fixed;
    bottom: -50px;
    right: 20px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 0 10px;
    width: fit-content;
    height: 50px;
    min-width: 100px;
    max-width: 90vw;
    border-radius: 10px;
    color: whitesmoke;
    text-align: center;
    background-color: #232b2b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: bottom 0.5s, opacity 0.5s, visibility 0.5s, transform 0.5s;
}

.toast.show {
    bottom: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0);
}

@media (min-width: 600px) {
    .toast {
        right: 20px;
    }
}

.toast .toast-prefix {
    width: 45px;
    height: 100%;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.toast .toast-content {
    position: relative;
    padding-right: 10px;
}

.toast .toast-timer {
    position: absolute;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #4CAF50;
    animation: fullWidth 5s linear forwards;
}

.toast.warn .toast-timer {
    background-color: #d9534f;
}

.offline-online-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s;
}

.toast-modal {
    font-weight: 600;
    text-align: center;
    padding: 1em;
    border: 1px solid currentColor;
    background-color: rgba(0, 0, 0, 0.73); /* Padrão neutro que será sobrescrito */
    box-shadow: 0px 0px 2px currentColor;
    color: currentColor;
    text-shadow: 2px 1px #00040a;
    transition: 0.5s;
    margin: 5rem auto 30px;
    border-radius: 10px;
    max-width: 500px; /* Limite a largura máxima para 500px */
    width: calc(100% - 90px); /* Adicione um espaçamento nas laterais */
}




