@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* Scrollbar */
.scrollbar_enviro_asset {
    scrollbar-width: thin;
    scrollbar-color: var(--medium-blue) #e3e8f1;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #e3e8f1; /* Cor do fundo */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--medium-blue); /* Cor azul do scroll */
    border-radius: 50px; /* Deixa o thumb bem arredondado */
}

::-webkit-scrollbar-thumb:hover {
    background: #2f6cd3; /* Azul um pouco mais escuro ao passar o mouse */
}

::-webkit-scrollbar-button {
    display: none; /* Remove as setas da scrollbar */
}
/* Fim scrollbar */

/* --------------------------------------------------------------
TOPO
-------------------------------------------------------------- */

.container {
    max-width: 1300px;
}

.header_base {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--medium-blue);
    width: 100vw;

    .header_content {
        width: 1366px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 50px;
    }

    img.ea_logo_white {
        width: 62.609px;
        height: 32px;
    }

    #r_div_header {
        display: flex;
        flex-flow: row;
        justify-content: flex-end;
        align-items: center;
        padding: 8px;
        gap: 32px;

        #tutorial-btn {
            background: none;
            display: flex;
            flex-flow: row;
            align-items: center;
            gap: 12px;
            border: none;

            i {
                color: #FFF;
                font-size: 22px;
            }
    
            p {
                margin: 0;
                color: #FFF;
                font-size: 14px;
            }
        }
    
        #account-drop {
            button {
                background: none;
                display: flex;
                flex-flow: row;
                align-items: center;
                gap: 12px;
                border: none;

                i {
                    color: #FFF;
                    font-size: 22px;
                }

                .ph-caret-down {
                    font-size: 16px !important;
                }
    
                p {
                    margin: 0;
                    color: #FFF;
                    font-size: 14px;
                }
            }

            button:active {
                border: none;
            }

            button::after {
                color: #FFF;
                font-size: 18px;
                display: none;
            }

            .dropdown-menu {
                margin-top: 8px;
                min-width: 220px;
                width: max-content;
                padding: 16px;
                left: -95px !important;
                border-radius: 4px;
                border: none;
                box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);

                .user_div_details {
                    display: flex;
                    padding: 8px 0;
                    align-items: center;
                    gap: 8px;

                    i {
                        font-size: 28px;
                        color: #D9D9D9;
                    }

                    .user_infos {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: flex-start;
                        gap: 2px;

                        p {
                            margin: 0;
                            font-size: 12px;
                        }

                        .name_item {
                            color: var(--dark-blue);
                        }

                        .email_user_item {
                            color: #A3A3A3;
                        }
                    }
                }

                .dropdown-item {
                    display: flex;
                    padding: 8px;
                    align-items: center;
                    gap: 11px;
                    margin: 16px 0;
                    border-radius: 4px;

                    p {
                        font-size: 12px;
                        margin: 0;
                        color: var(--medium-blue);
                    }

                    i {
                        font-size: 22px;
                    }

                    .icon_passwd, .icon_logout {
                        color: var(--medium-blue);
                    }
                }

                .dropdown-item:hover {
                    background: #DFEBFF;
                }

                .switch_item {
                    justify-content: space-between;

                    p{
                        color: var(--dark-blue);
                    }
                }

                .switch_item:hover {
                    background: none;
                }
            }

            hr.line-separator {
                border: 1px solid var(--border);
                width: 100%;
                margin: 16px 0;
            }
        }
    }
}

.global_tools_menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-flow: row;
    margin: 16px 0;
    a {
        background-color: transparent;
        transition: background-color 0.5s ease-in-out;
        border-radius: 5px;
        padding: 10px 30px;

        p {
            margin-bottom: 0;
            color: #4589FF;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            gap: 10px;
            font-size: 12px;

            i {
                font-size: 17px;
            }
        }
    }

    a.menu-disabled p {
        color: #838383;
    }

    a.menu-disabled:hover {
        background-color: #e3e3e3;
    }
    
    a.global-menu-highlight, a:hover{
        background-color: #DFEBFF;
        text-decoration: none;        
    }
}

/*  */
#carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--bg-default);
    border: 1px solid #4589FF;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: #4589FF;
}

/* General Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparente para fundo escuro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal_tutorial_content {
    background: var(--card-color);
    border-radius: 15px;
    padding: 20px;
    max-width: 90%;
    width: 800px;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: auto;
}

.carousel-video-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.carousel-inner-tutorial {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    flex-wrap: nowrap;
}

.carousel-slide-tutorial {
    flex: 0 0 100%; /* Cada slide ocupa 100% da largura do container */
    text-align: center;
    display: none; /* Esconde slides inativos */

    h2 {
        color: var(--text-color);
    }
}

.carousel-slide-tutorial.active {
    display: block; /* Mostra o slide ativo */
}

/* Restricted Area Modal */
.restricted_message_card {
    background: var(--card-color);
    border-radius: 10px;
    width: auto;

    .restricted_header {
        border-bottom: none;
    }

    .restricted_body {
        padding: 0 24px 16px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;

        .tool_block {
            width: 148px;
            height: 115px;
        }

        .restricted_text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 8px;

            h2, p {
                margin: 0;
            }
        }
    }

    .restricted_footer {
        border-top: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 0 24px 24px 24px;

        .btn_return {
            padding: 16px;
            background: transparent;
            color: var(--text-color);
            border-radius: 4px;
            cursor: pointer;
            margin: 0;
            border: none;
            border: solid 1px #4589ff;
            color: #4589ff;
        }
        .btn_return:hover{
            background-color: #b8d2ff;
        }

        .btn_contact {
            padding: 16px;
            background: var(--medium-blue);
            color: #FFF;
            border-radius: 4px;
            cursor: pointer;
            margin: 0;
        }
    }
}

/* Video Styling */
.tutorial-video {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
    outline: none;
}

/* Controls */
.carousel-control-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 1010;
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    text-align: center;
    line-height: 1;
    width: 50px;
    height: 50px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #fff;
}

.carousel-control-prev {
    position: absolute;
    left: 10px;
}

.carousel-control-next {
    position: absolute;
    right: 10px;
}

/* Accessibility */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.carousel-control-prev-icon:before,
.carousel-control-next-icon:before {
    content: '';
    display: block;
    border: solid black;
    border-width: 0 2px 2px 0;
    padding: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.carousel-control-prev-icon:before {
    transform: translate(-50%, -50%) rotate(135deg);
}

.carousel-control-next-icon:before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal_tutorial_content {
        max-width: 100%;
        width: 90%;
        height: 90%;
    }

    .tutorial-video {
        width: 100%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        font-size: 20px;
        padding: 8px;
    }
}

/* --------------------------------------------------------------
LANGUAGE SELECTOR
-------------------------------------------------------------- */
.lang-select {
    position: relative;
    width: max-content;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--medium-blue);
}
  
.selected, .option-language {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
}
  
.option-language {
    padding: 8px;
}
  
.option-language:hover {
    background: #DFEBFF;
    border-radius: 4px;
}
  
.options-sel-lang {
    display: none;
    position: absolute;
    top: 100%;
    left: 5px;
    width: max-content;
    border-radius: 4px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #FFF;
    padding: 8px;
}

.options-ml-header {
    top: 35px;
    z-index: 1;
    left: -115px;
}
  
.lang-select.open .options-sel-lang {
    display: block;
}

.arrow-down-white {
    color: #FFF;
}

/* Garante que o seletor herdado não interfira */
.lang-select:not(:visible) {
    display: none !important;
}
  
/* Estilo específico para o dropdown do login */
.lang-select.open .options-login {
    display: block;
    top: -100px;
    left: -10px;
}
  
/* Estilo específico para o dropdown da página inicial */
.lang-select.open .options-ml-header {
    display: block;
    top: 35px;
    left: -115px;
}

/* --------------------------------------------------------------
UI COMPONENTS
-------------------------------------------------------------- */
/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}
  
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
  
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 1px solid #D1D1D1;
    border-radius: 34px;
    transition: 0.4s;
}
  
.slider::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    top: 2px;
    background-color: #D1D1D1;
    border-radius: 50%;
    transition: 0.4s;
}
  
input:checked + .slider {
    background-color: var(--medium-blue);
    border: 1px solid var(--medium-blue);
}
  
input:checked + .slider::before {
    transform: translateX(14px);
    background-color: #FFF;
}