/*#region Font Imports*/

@font-face {
    font-family: 'Kadwa';
    src: url('/assets/fonts/Kadwa-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Kadwa-Bold';
    src: url('/assets/fonts/Kadwa-Bold.ttf') format('truetype');
}

/*#endregion Font Imports*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--kadwa);
}

html, body {
    margin: auto;
    position: relative;
    min-height: 100%;
    min-width: 100%;
    background-color: white;
}

    body main {
        /*                display: flex;*/
        justify-content: center;
        align-items: center;
        align-self: center;
        height: 91.5dvh;
        /*        height: 100%;*/
        width: 95.2dvw;
        margin-left: 4.8dvw;
        margin-top: 8.5dvh;
        background-color: white;
        /*position: fixed; //RETIRADO */
        box-sizing: border-box;
    }

        body main .mp-container {
            display: flex;
            justify-content: center;
            align-items: start;
            height: 100%;
            width: 98.5%;
            background-color: var(--light-background-color);
            border-radius: 30px 30px 0 0;
            overflow-y: auto;
            overflow-x: hidden;
        }

            /* Esconde a barra de rolagem no navegador Webkit (Chrome, Safari) */
            body main .mp-container::-webkit-scrollbar {
                display: none;
            }

        /* Esconde a barra de rolagem no Firefox */
        body main .mp-container {
            scrollbar-width: none; /* Firefox */
        }

        /* Garante que a rolagem ainda funcione */
        body main .mp-container {
            overflow: -moz-scrollbars-none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
        }

            body main .mp-container .loading {
                position: fixed;
                z-index: 1000;
                justify-self: center;
                align-self: center;
                display: none;
                transition: all ease 0.3s;
            }



/*#region Notification*/
#toast-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast-notification {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); /* Inicialmente fora da tela */
    opacity: 0;
    animation: slideIn 0.5s forwards;
}

    .toast-notification .icon {
        margin-right: 10px;
    }

    .toast-notification .close-btn {
        margin-left: auto;
        background: none;
        border: none;
        color: black;
        font-size: 16px;
        cursor: pointer;
    }

    .toast-notification .progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 5px;
        border-radius: 0 0 0px 0px;
    }

    .toast-notification.success {
        background-color: #ffffff;
        color: black;
        border: 1px solid #218838;
        box-shadow: 0 0 3px #218838;
    }

        .toast-notification.success .progress {
            background-color: #218838;
        }

    .toast-notification.error {
        background-color: #ffffff;
        color: black;
        border: 1px solid #c82333;
        box-shadow: 0 0 3px #c82333;
    }

        .toast-notification.error .progress {
            background-color: #c82333;
        }

    .toast-notification.warning {
        background-color: #ffffff;
        color: black;
        border: 1px solid #e0a800;
        box-shadow: 0 0 3px #e0a800;
    }

        .toast-notification.warning .progress {
            background-color: #e0a800;
        }

    .toast-notification.info {
        background-color: #ffffff;
        color: black;
        border: 1px solid #117a8b;
        box-shadow: 0 0 3px #117a8b;
    }

        .toast-notification.info .progress {
            background-color: #117a8b;
        }
/* Animações */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/*#endregion Notification*/

/*#region custom-dropdown*/
.custom_dropdown-container {
    margin-left: 25px;
    position: relative;
    display: inline-block;
}

.custom_dropdown-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    width: max-content;
}

    .custom_dropdown-btn img {
        max-width: 24px;
        margin-right: 8px;
        border-radius: 2px;
    }

.custom_dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    margin: 5px 0;
    width: max-content;
    min-width: 100%;
    border-radius: 4px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

    .custom_dropdown-menu li {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
    }

        .custom_dropdown-menu li a {
            text-decoration: none;
            color: black;
        }

            .custom_dropdown-menu li a img {
                max-width: 20px;
                margin-right: 8px;
                border-radius: 2px;
            }

            .custom_dropdown-menu li a span {
                color: black;
                transition: all ease 0.3s;
            }

        .custom_dropdown-menu li:hover,
        .custom_dropdown-menu li:hover a span {
            color: darkblue;
            background: #f0f0f0;
        }
/*#endregion*/

/*#region ToogleSwitch*/
input[type="checkbox"].toogle_switch {
    vertical-align: central;
    -webkit-appearance: none;
    position: relative;
    width: 50px;
    height: 30px;
    border-radius: 25px;
    background-color: #ccc;
    transition: background .3s;
    outline: none;
    cursor: pointer;
}

    input[type="checkbox"].toogle_switch::after {
        vertical-align: central;
        content: '';
        position: absolute;
        top: 50%;
        left: 30%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        height: 1rem;
        width: 1rem;
        background-color: rgb(255, 255, 255);
        transition: all .3s;
    }

    input[type="checkbox"].toogle_switch:checked {
        vertical-align: central;
        background-color: rgb(141, 221, 141);
    }

        input[type="checkbox"].toogle_switch:checked::after {
            vertical-align: central;
            left: 70%;
            height: 1.25rem;
            width: 1.25rem;
            background-color: rgb(255, 255, 255);
        }
/*#endregion*/
