:root {
    --primary-color: rgba(0, 42, 76, 1);
    --secondary-color: rgba(30, 68, 100, 1);
    --primary-font: 'Arial';
    --font-color: rgba(0, 42, 76, 1);
}

html {
    position: relative;
    min-width: 100dvw;
    min-height: 100dvh;
}

body main {
    margin: auto;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
}

button:disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
}

input:disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
}

select:disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
}

/*#region top-bar*/
.wms_topbar {
    z-index: 1000;
    min-height: 9%;
    width: 100%;
    position: fixed;
    background-color: #e0e5ec;
    padding: 8px;
    padding-left: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

    .wms_topbar .left {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 100%;
    }

        .wms_topbar .left .title-text {
            font-size: 36px;
            font-weight: 600;
            color: var(--font-color);
        }

    .wms_topbar .right {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 100%;
        gap: 25px;
    }
/*#endregion top-bar*/

/*#region side-bar*/
.wms_sidebar {
    z-index: 1000;
    height: 100%;
    max-width: 75px;
    position: fixed;
    left: 0;
    background-color: #002a4c;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    transition: all ease-in-out 1s;
}

    .wms_sidebar header {
        min-height: 8%;
        display: flex;
        flex-direction: row;
        overflow-x: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        padding-bottom: 5px;
        margin-bottom: 10px;
        border-bottom: solid 1px;
        border-image: linear-gradient(to right, #002a4c, white, #002a4c) 1;
    }

        .wms_sidebar header a {
            display: flex;
            flex-direction: row;
            overflow-x: hidden;
            flex-wrap: nowrap;
            gap: 10px;
            text-decoration: none;
            transition: all ease 0.3s;
        }

            .wms_sidebar header a .logo {
                object-fit: contain;
                max-width: 200px
            }

            .wms_sidebar header a .icon {
                object-fit: contain;
                max-width: 50px;
            }

    .wms_sidebar label {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px;
        margin-bottom: 20px;
        border-radius: 5px;
        color: white;
        transition: all ease 0.3s;
    }

        .wms_sidebar label input {
            display: none;
            background-color: #2E638E;
            border-color: transparent;
            color: white;
            font-size: 15px;
            width: 80%;
            height: 100%;
            outline: none;
        }

            .wms_sidebar label input:focus {
                border-color: transparent;
                color: white;
                font-size: 16px;
            }

            .wms_sidebar label input::placeholder {
                color: white;
                font-size: 18px;
            }

    .wms_sidebar nav {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

        .wms_sidebar nav .menu-item .menu-button,
        .wms_sidebar nav a {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            overflow-x: hidden;
            width: 100%;
            padding: 5px;
            border-radius: 10px;
            color: white;
            text-decoration: none;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 20px;
            background-color: transparent;
            border-color: transparent;
            transition: all ease 0.3s;
        }

            .wms_sidebar nav .menu-item .menu-button div {
                gap: 10px;
                display: flex;
                flex-direction: row;
                overflow-x: hidden;
                flex-wrap: nowrap;
            }

                .wms_sidebar nav .menu-item .menu-button div span,
                .wms_sidebar nav a span {
                    display: none;
                }


        .wms_sidebar nav .menu-item {
            flex-wrap: nowrap;
            overflow-x: hidden;
            padding: 0;
            width: 100%;
            border-radius: 10px;
        }

            .wms_sidebar nav .menu-item.active {
                background-color: #1E4464;
            }

            .wms_sidebar nav .menu-item ol {
                display: none;
            }

            .wms_sidebar nav .menu-item.active ol {
                display: flex;
                flex-direction: column;
            }

            .wms_sidebar nav a:hover,
            .wms_sidebar nav .menu-item:hover {
                background-color: #1E4464;
            }

        .wms_sidebar nav a:hover {
            font-weight: bold;
            cursor: pointer;
        }

        .wms_sidebar nav .menu-item .menu-button:hover {
            font-weight: bold;
            cursor: pointer;
        }

        .wms_sidebar nav .menu-item ol {
            list-style: none;
        }

            .wms_sidebar nav .menu-item ol a {
                text-decoration: none;
                font-size: 15px;
            }


    .wms_sidebar footer {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: hidden;
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        bottom: 20px;
    }

        .wms_sidebar footer form button {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            overflow-x: hidden;
            background-color: transparent;
            border-color: transparent;
            color: #EF3131;
            gap: 10px;
        }

            .wms_sidebar footer form button span {
                display: none;
            }

    /*#region sidebar hover*/
    .wms_sidebar:hover {
        max-width: 30%;
        overflow-y: auto;
    }

        .wms_sidebar:hover header a .logo {
            display: inline-flex;
        }

        .wms_sidebar:hover label {
            background-color: #2E638E;
        }

            .wms_sidebar:hover label input {
                display: inline-flex;
            }

        .wms_sidebar:hover footer form button span {
            display: inline-flex;
        }

        .wms_sidebar:hover nav {
            padding-left: 20px;
            padding-right: 20px;
            text-align: left;
        }

            .wms_sidebar:hover nav .menu-item .menu-button,
            .wms_sidebar:hover nav a {
                justify-content: flex-start;
            }

            .wms_sidebar:hover nav .menu-item .menu-button {
                justify-content: space-between;
            }

                .wms_sidebar:hover nav .menu-item .menu-button div span, .wms_sidebar:hover nav a span {
                    display: inline-flex;
                }

        .wms_sidebar:hover footer {
            padding-left: 30px;
            left: 0;
            transform: translate(0, 0);
        }
/*#endregion sidebar hover*/
/*#endregion*/

/*#region custom-dropdown*/
.custom_dropdown-container {
    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: 1.25rem;
        width: 1.25rem;
        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%;
            background-color: rgb(255, 255, 255);
        }
/*#endregion*/

/*#region Notification*/
#toast-container {
    position: fixed;
    top: 10dvh;
    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*/
