.fr-emoticon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-size: contain;
  background-repeat: no-repeat;
}

.verificacao-item {
    background-color: #ffffce;
}

.titulo-curso {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Adiciona hífens onde necessário */
    line-height: 1.3;
    max-width: 100%;
    /* Evita que ultrapasse o container */
}

/* Estilo para o nome do curso */
.titulo-curso .nome-curso {
    font-size: 0.9rem;
    /* Tamanho um pouco menor */
    color: #6c757d;
    /* Cor mais suave */
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilo para a unidade curricular e aula */
.titulo-curso .uc-aula {
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limita a 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

/* Para telas menores */
@media (max-width: 768px) {
    .titulo-curso .nome-curso {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .titulo-curso .uc-aula {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
}

nold {
    color: #999;
    background-color: #eee;
    text-decoration: underline;
}

nold:after {
    font-family: "Font Awesome 5 Free";
    content: "\f070";
    font-size: 12px;
    display: inline-block;
    padding-left: 3px;
    vertical-align: middle;
    font-weight: 900;
}


[id^='roteiro_'] a {
    overflow-wrap: break-word;
}

.textTooltip {
    text-decoration: underline !important;
    color: #ff11ff;
}

.textTooltip:after {
    font-family: "Font Awesome 5 Free";
    content: "\f05a";
    font-size: 16px;
    display: inline-block;
    padding-left: 3px;
    vertical-align: middle;
    font-weight: 900;
}

#mostrarVersoes .modal-body {

    overflow-x: hidden !important;
}

td {
    color: #000;
}

[id^='conteudo'] table td {
    padding: 0 10px;
}

pre code * {
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-style: normal;
}

pre code td {
    border: none;
    color: unset;
}

pre code table {
    color: unset !important;
    border: none !important;
    margin: unset !important;
}

.titulo_menu {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
}


/** SIDEBAR EDITAR CONTEÚDO DA AULA **/
#sidebar-wrapper,
#sidebar-wrapper2,
#sidebar-wrapper3 {
    z-index: 1000;
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    transform: translateX(200px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;


}

#sidebar-wrapper2 {
    width: 250px;
    transform: translateX(250px);
    background: #F8F8FF;
    z-index: 999;
}

#sidebar-wrapper3 {
    width: 700px;
    transform: translateX(700px);
    background: #FFF;
    z-index: 1000;
}



#close-menu {
    position: sticky;
    top: 0;
    right: 0;
    display: block;
    background: rgba(221, 221, 221, 0.9);
    /* opcional, pra não sobrepor o conteúdo */
    padding: 10px;
    z-index: 10;
    margin: 0;
}

.sidebar-nav {
    /*position: absolute;*/
    top: 0;
    margin: 0;
    padding: 0;
    list-style: none;

    .thumb_pag {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
        padding-top: 20px;

        img {
            width: 30%;
            opacity: 0.5;
        }


        &:hover {
            background-color: #f05623;

            img {
                opacity: 1;
                filter: invert(1);
            }

            .titulo_menu {

                color: #fff;
            }


        }


    }
}


.sidebar-nav2 {
    width: 250px;
}

.sidebar-nav3 {
    width: 1000px;
}

.sidebar-nav li {
    margin: 0 auto;
}

#pags_texto li {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}




.sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #999;
}

.sidebar-nav li a:hover {
    text-decoration: none;
    /*color: #fff;
    background: rgba(255,255,255,0.2);*/

}

.sidebar-nav>.sidebar-brand {
    height: 55px;
    font-size: 18px;
    line-height: 55px;
}

.sidebar-nav>.sidebar-brand a {
    color: #999;
}

.sidebar-nav>.sidebar-brand a:hover {
    color: #fff;
    background: none;
}


#sidebar-wrapper.active {
    right: 200px;
    width: 160px;
    background-color: #ddd;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;

    -webkit-box-shadow: -16px 3px 79px -5px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -16px 3px 79px -5px rgba(0, 0, 0, 0.75);
    box-shadow: -16px 3px 79px -5px rgba(0, 0, 0, 0.75);
}


#sidebar-wrapper2.active,
#sidebar-wrapper3.active {
    right: 200px;
    width: 250px;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;

    -webkit-box-shadow: -16px 3px 79px -5px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -16px 3px 79px -5px rgba(0, 0, 0, 0.75);
    box-shadow: -16px 3px 79px -5px rgba(0, 0, 0, 0.75);
}

#sidebar-wrapper2.active {
    right: 450px;
    width: 250px;
}

#sidebar-wrapper3.active {
    right: 700px;
    width: 1000px;
}

.toggle {
    margin: 5px 5px 0 0;
}

.area_verificacao {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    cursor: pointer;

}

.opacidade50 {
    filter: opacity(0.5);
}

.badge_verificacao {
    padding: 5px;
    border-radius: 5px;

}

.area_verificacao .badge_verificacao {
    min-width: 25px;
    font-size: 15px;
    color: #fff;
}

.square {
    padding: 8px;
    display: block;
    margin: 12px;
}

.wl a {
    color: #3e4f5c;
}

.secao {
    border: 1px solid #fff;
    padding: 15px 0 0 15px;
}

.secao:hover {
    border: 1px solid #0a84ff;
    /* azul sutil de destaque */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #f9fbff;
    transform: translateY(-2px);
    transition: all 0.25s ease;
    border-radius: 8px;
}

/* estado padrão: invisível */
.add_secao,
.add_txt,
.add_img {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0 5px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);

    box-shadow: 0 1px 3px rgba(14, 30, 37, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    font: inherit;
}


.add_txt,
.add_img {
    background: linear-gradient(180deg, #054f9b 0%, #156cc2 100%) !important;

}

.add_txt *,
.add_img * {
    color: #f8f8f8;

}


/* o '+' criado via pseudo-elemento */
.add_secao::before {
    content: "+";
    display: inline-block;
    line-height: 1;
    font-weight: 700;
    font-size: 18px;
    color: #f8f8f8;
    transform: translateY(-1px);
    pointer-events: none;
}


.add_txt.show-nav-secao,
.add_img.show-nav-secao,
.add_secao.show-nav-secao {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* hover / active */
.add_txt.show-nav-secao:hover,
.add_img.show-nav-secao:hover,
.add_secao.show-nav-secao:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(14, 30, 37, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.add_txt.show-nav-secao:active,
.add_img.show-nav-secao:active,
.add_secao.show-nav-secao:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(14, 30, 37, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* foco acessível */
.add_txt:focus,
.add_img:focus,
.add_secao:focus {
    outline: 3px solid rgba(31, 58, 99, 0.18);
    outline-offset: 2px;
}



/* teste */


.semioculto * {
    color: #999 !important;
}

.semioculto {
    color: #999 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* teste */

.add_img:hover {
    background-color: #ddd !important;
}

.add_txt:hover {
    background-color: #ddd !important;
}



.add_txt.show-nav-secao {
    color: black !important;
    cursor: pointer;
}

.add_img.show-nav-secao {
    color: black !important;
    cursor: pointer;
}

.thumb_pag img {
    width: 120px;


}

.btn-group .btn {
    flex: 1 1 auto;
    z-index: 100;
}

.sidebar-nav li a img:hover {
    cursor: pointer;
}

.btn-group {
    width: 30%;
    white-space: nowrap;


}

.card-body .btn-group {
    display: flex;
    flex-wrap: nowrap !important;
    /* nunca quebra linha */
    justify-content: flex-end;
    width: 100%;
    overflow: hidden;
    /* impede escapar */
}

.card-body .btn-group .btn {
    flex: 0 1 auto;
    /* botão pode encolher levemente */
    min-width: 0;
    /* remove largura mínima que quebrava tudo */
}

.btn-group button,
.btn-group a {
    margin: 0 10px;
}


.form-pesquisa {
    margin: 0 15px !important;
}

.row .zoom_card {
    padding: 0;
    min-width: 350px;
    border-radius: 7px;
    cursor: pointer;
}


.zoom_card {

    transition: transform .6s;
    transition: transform .6s, box-shadow .6s;
}

.zoom_card:hover {
    -ms-transform: scale(1.05);
    /* IE 9 */
    -webkit-transform: scale(1.05);
    /* Safari 3-8 */
    transform: scale(1.05);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);

}

.titulo-com-borda {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);

}

.ui-state-highlight {
    line-height: 4.2em;
    background: #FFF;
    border: #5a5c69 6px dashed;
    height: 50px;
}

#conteudo_pagina {
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: #FFF;
    border-radius: 10px;
    padding: 20px;
    padding-bottom: 0px;
    max-width: 1000px !important;
    color: #000;
}

#verificacao_pagina {
    background: #cdcdcd;
}

.destaque-secao {
    background-color: lightyellow;
}

.nav_secao .btn:hover {
    color: #0FF;
}

.hide-nav-secao {
    display: none;
    /*visibility: hidden;*/
}

.content_secao cite {
    padding-left: 200px;
    font-style: normal;
    font-size: 0.85em;
    display: block;
}

.content_secao cite b {
    font-size: 35px;
}

.content_secao li:not(:last-child) {
    margin-bottom: 3px;
}

#conteudo_pagina h1 {
    margin-bottom: 0px;
    font-size: 28px;
    text-transform: uppercase;
}

#conteudo_pagina h2 {
    margin-bottom: 0px;
    font-size: 24px;
}

#conteudo_pagina h3 {
    margin-bottom: 0px;
    font-size: 20px;
}

#conteudo_pagina h4 {
    margin-bottom: 0px;
    font-size: 22px;
}

.cards div span,
.destaque div span.corpoDestaque {
    display: block;
    padding: 10px;
    margin-bottom: 10px;
    color: #fff;
}

.corpoDestaque * {
    color: #fff !important;
    background-color: unset !important;
}

.cards_2_colunas,
.cards_3_colunas {
    align-items: stretch !important;
}

.cards_2_colunas.cards div span,
.cards_3_colunas.cards div span {
    background-color: #e2d9f3;
    padding: 10px;
    flex-wrap: wrap;
    margin-right: 0.75rem;
    margin-left: 0.75rem;
    border-radius: 5px;
    color: #000;
}

#mostrarRoteiro img {
    max-width: 100% !important;
}

[id^=roteiro_] img {
    max-width: 100% !important;
}




.imgw70 {
    width: 70%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.1);
}


.imgw100 {
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.1);
}

.destaque_1 {
    background-color: #2C83E8;
    position: unset;
    padding: 15px;
    padding-right: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.destaque_2 {
    background-color: #68B22D;
    position: unset;
    padding: 15px;
    padding-right: 0;
    margin-top: 35px;
    margin-bottom: 35px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.destaque_3 {
    background-color: #E84E2C;
    position: unset;
    padding: 15px;
    padding-right: 0;
    margin-top: 35px;
    margin-bottom: 35px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.destaque_4 {
    background-color: #D6B300;
    position: unset;
    padding: 15px;
    padding-right: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.destaque_5 {
    background-color: #32C5B3;
    position: unset;
    padding: 15px;
    padding-right: 0;
    margin-top: 35px;
    margin-bottom: 35px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.destaque_6 {
    background-color: #b989bc;
    position: unset;
    padding: 15px;
    padding-right: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}


.destaque_1 a,
.destaque_2 a,
.destaque_3 a,
.destaque_4 a,
.destaque_5 a,
.destaque_6 a {
    color: #fff !important;
    text-decoration: underline;
}

.destaque_1 .content_secao a,
.destaque_2 .content_secao a,
.destaque_3 .content_secao a,
.destaque_4 .content_secao a,
.destaque_5 .content_secao a,
.destaque_6 .content_secao a {
    color: #00c !important;
}

.questao>div {
    background-color: #f8f9fa;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 5px;
}

.questao .pergunta {
    font-weight: bold;
    margin-bottom: 10px;
}

.questao .questao_opcao {
    margin-top: 20px;
}

.questao .btn_verificar {
    text-align: center;
    margin-top: 20px;
}

.questao .form-check-input {
    margin-left: 20px;
}

.questao_opcao table {
    text-align: left;
    /* Alinha o conteúdo à esquerda */
    margin-left: 0;
    /* Remove qualquer margem à esquerda */
    width: auto;
    /* Evita que a tabela ocupe 100% da largura */
}

.option-text,
.drop-area,
.drag-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}

.drop-area,
.draggable {
    width: 100%;
    height: 55px;
    min-height: 55px;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
    padding: 0;
}

.drop-area {
    border: 2px dashed black;
}

.draggable {
    background-color: #e1e1e1;
    padding: 0 5px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
}

.draggable p {
    margin: 0;
}

.container-fluid {
    margin-bottom: 150px !important;
}

.container-fluid .timeline-content:not(.timeline-content-finalizado):not(i) {
    color: #333;
}

.container-fluid .timeline-content-finalizado p {
    color: #fff !important;
}



#resultados {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

#resultados>div {
    border-top: 2px rgba(240, 240, 240, 1) solid;
    border-left: 2px rgba(240, 240, 240, 1) solid;
    margin: 18px;
    padding: 10px;
    flex-grow: 1;
    width: 30%;
    max-width: 30%;
}






.abas div.tab-content {
    border-left: 1px solid #dddfeb;
    border-right: 1px solid #dddfeb;
    border-bottom: 1px solid #dddfeb;
    padding: 20px;
}



.carousel-indicators [data-bs-target] {
    opacity: 0.3 !important;
}

.carousel-indicators .active {
    opacity: 1 !important;
}

.carousel-indicators button {
    background-color: #000 !important;
}


.carousel-inner {
    margin: 0 auto;
    max-width: 80%;

}



.carousel-control-next-icon {
    background-image: url('../img/right-arrow-backup-2-svgrepo-com.svg') !important;
}


.carousel-control-prev-icon {
    background-image: url('../img/left-arrow-backup-2-svgrepo-com.svg') !important;
}

.carousel {
    min-height: 400px;
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.05);
    /* Cor de fundo neutra */
    border-radius: 20px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1),
        -8px -8px 16px rgba(255, 255, 255, 0.7);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline ul {
    color: #666;
}

#bodeee {
    background-size: cover !important;
    background-position-x: left !important;
    background-position-y: top !important;
}



.timeline:not(#secao_versoes) {
    position: relative;
    padding-left: 4rem;
    margin: 0 0 0 30px;
    color: white;

    &:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: #cdcdcd;
    }

    .timeline-container {
        position: relative;
        margin-bottom: 2.5rem;

        .timeline-icon {
            position: absolute;
            left: -88px;
            /* Alterado: top agora é fixo para alinhar o centro do ícone (50px / 2 = 25px) */
            /* com o ponto de ancoragem da seta, garantindo a consistência */
            top: 0;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            text-align: center;
            font-size: 2rem;
            background: #666;

            i {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
            }

            img {
                width: 100%;
                height: 100%;
                border-radius: 50%;
            }
        }

        .timeline-body {
            background: #f0f0f0;
            border-radius: 0 20px 20px 20px;
            position: relative;
            /* Mantém a seta da timeline */
            overflow: visible;
            /* Permite que elementos saiam da div (para a seta) */
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            padding: 20px 20px 15px;

            &:before {
                content: '';
                background: inherit;
                z-index: 2;
                width: 20px;
                height: 20px;
                display: block;
                position: absolute;
                left: -10px;
                /* Alterado: top fixo para alinhar com o centro do ícone, 
                independentemente da altura do .timeline-body */
                top: 25px;
                transform: translateY(-50%) rotate(45deg);
                border-radius: 0 0 0 2px;
            }

            p,
            li,
            [id^="conteudo_"] {
                color: #666;
                font-size: 16px;
            }

            .timeline-title {
                color: #888;

                .badge {
                    background: #666;
                    padding: 4px 8px;
                    border-radius: 3px;
                    font-size: 12px;
                    font-weight: bold;
                }
            }

            .col-md-12 {
                display: flex;
                justify-content: center;
                flex-direction: column;
                align-items: center;
            }

            img {
                max-width: 100%;
                height: auto;
                display: block;
                margin-top: 10px;
            }

            .timeline-subtitle {
                font-weight: 300;
                font-style: italic;
                opacity: .4;
                margin-top: 16px;
                font-size: 11px;
            }
        }
    }
}


.resultadoItem:hover {
    background-color: #ffffde;
}

.editarConteudoSecao {
    margin: 20px;
    margin-top: 0px;
}

.editarConteudoSecao input {
    color: #000;
    font-size: 17px;
}

.lista ul,
.lista ol {
    padding-left: 70px;
}

.lista ul li,
.lista ol li {
    font-size: 17px;
    margin-bottom: 12px;
}



.cards .col-sm-4 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Faz com que todas as colunas cresçam igualmente */
}

.cards .col-sm-4>span {
    flex-grow: 1;
    /* Faz com que o conteúdo interno ocupe toda a altura da coluna */
    display: flex;
    flex-direction: column;
}

.cards .editavel {
    flex-grow: 1;
    /* Faz com que o conteúdo editável ocupe todo o espaço disponível */
}

.questao {
    --bs-gutter-x: 0 !important;
    margin: 0 auto !important;
}


#conteudo_pagina .espaco_em_edicao {
    margin-bottom: 20px !important;
}



.jx-controller {
    background-color: #fff;
}

.jx-arrow {
    border-color: #CCCCCC;
}

.cli .nav.nav-tabs {
    background-color: #f1f1f1;
    border-bottom: 0 !important;
}




.nav-tabs .nav-link {
    border-bottom: 0 !important;
    border-radius: 0 !important;

}

.nav-tabs .nav-link:is(.active) {
    color: #fff !important;
    background-color: #616161 !important;
}

.nav-tabs .nav-link:not(.active) {
    background-color: none;
}

.nav-tabs .nav-link:not(.active):hover {
    background-color: #A9A9A9 !important;
    color: #fff;
}



.big-checkbox {
    width: 30px;
    height: 30px;
}

/** ------- **/

.blinkRO {
    border: rgba(242, 141, 69, 0.856) dashed 2px;

}




/* The side navigation menu */
.menuEsq {
    margin-left: 225px;
    height: 100%;
    /* 100% Full-height */
    width: 0;
    /* 0 width - change this with JavaScript */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Stay on top */
    top: 0;
    /* Stay at the top */
    left: 0;
    background-color: #fff;
    /* Black*/
    overflow-x: hidden;
    /* Disable horizontal scroll */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in the menuEsq */
    -webkit-box-shadow: 10px 3px 79px -5px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 3px 79px -5px rgba(0, 0, 0, 0.75);
    box-shadow: 10px 3px 79px -5px rgba(0, 0, 0, 0.75);
}

/* The navigation menu links */
.menuEsq .closebtn {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.menuEsq a:hover {
    color: #333;
}

/* Position and style the close button (top right corner) */


.aulanaoiniciada {
    background-color: #d4fcee !important;
}

.table-striped tbody tr:nth-of-type(odd).aulanaoiniciada {
    background-color: #ceede2 !important;
}


.aulanaoiniciada td {
    background-color: transparent;

}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
    transition: margin-left .5s;
    padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the menuEsq (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .menuEsq {
        padding-top: 15px;
    }

    .menuEsq a {
        font-size: 18px;
    }

    .imwgw70 {
        width: 100% !important;
    }
}


.containercard {
    flex: 1 1 calc(33.33% - 20px);
    /* 3 por linha, considerando o gap */
    max-width: calc(33.33% - 20px);
    /* Garante que não ultrapassem o limite */
    box-sizing: border-box;
    /* Evita problemas de largura com padding */
    min-height: 100px;
    perspective: 1000px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.card.flipcard {
    display: flex;
    flex-direction: column;
    transition: transform 1s;
    transform-style: preserve-3d;
    cursor: pointer;
    border: 0 !important;
}

.front,
.back {
    padding: 10px;
    flex-grow: 1;

    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    width: 100%;
}

.colunas .front,
.colunas .back {
    background-color: #e2d9f3;
    justify-content: flex-start !important;
    align-items: flex-start !important;

}

.accordion-item:first-of-type,
.accordion-item:last-of-type,
.accordion-button {
    border-radius: 0 !important;
}

/* Mantém o menu fixo na lateral */


.front {
    background: #333;
    border-radius: 10px;
}

.floatingButtons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

/* Scroll escondido: NÃO ocupa espaço */
.btnScrollTopo {
    display: none;
}

/* Scroll visível */
.btnScrollTopo.show {
    display: flex;
}

.btnScrollTopo {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, #0d6efd 0%, #054f9b 100%);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btnChatGPT {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg,
            #542cfa 0%,
            #fc81d8 100%);
    background-size: 100% 100%;
    animation: gradientBreath 18s ease-in-out infinite;

    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;


}

.btnChatGPT::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(#542cfa,
            #fc81d8,
            #00f2ff,
            #542cfa);

    opacity: 0;
    transform: scale(0.85);
    transition: opacity .3s ease, transform .3s ease;

    z-index: -1;

    -webkit-mask:
        radial-gradient(farthest-side,
            transparent calc(100% - 6px),
            #000 calc(100% - 5px));
    mask:
        radial-gradient(farthest-side,
            transparent calc(100% - 6px),
            #000 calc(100% - 5px));
}

/* hover ativa tudo */
.btnChatGPT:hover {
    transform: scale(1.05);
}

.btnChatGPT:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: spin 3s linear infinite;
}

/* rotação */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientBreath {
    0% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 55% 56%;
    }

    100% {
        background-position: 50% 50%;
    }
}

.chat-loading {
    width: 48px;
    height: 48px;
    border: 5px solid #868686;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

#chatLoading {
    display: flex;
    height: 75px;

    margin: 0 auto;

    flex-direction: column;
    align-items: center;

}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.chatgpt-window {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 60vw;
    height: 520px;
    background: rgb(250, 250, 250);
    ;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    font-family: 'Inter', sans-serif;

    /* ponto de origem da animação (perto do botão) */
    transform-origin: bottom right;

    /* estado fechado */
    opacity: 0;
    pointer-events: none;
    transform:
        translateY(40px) scale(0.15);
    transition:
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(.4, 0, .2, 1),
        opacity 0.2s ease;

}

.chatgpt-window.espremido {
    width: 20vw;
    height: calc(100vh - 100px);
}

.chatgpt-window.open {
    opacity: 1;
    pointer-events: auto;
    transform:
        translateY(0) scale(1);
}

.btnChatGPT {
    transition: transform 0.2s ease;
}

.btnChatGPT.active {
    transform: scale(0.92);
}

/* Header */
.chatgpt-header {
    background: #f7f7f8;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
}

.chatgpt-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}



/* Corpo */
.chatgpt-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatgpt-body {

    ol,
    ul {
        padding-left: 20px;
        /* ajuste fino */
        margin-top: 0;
        margin-bottom: 0;
    }

    li {
        margin-top: 10px;
    }

    li p {
        margin-bottom: 0;
    }
}

/* Mensagens */
.message {
    max-width: 80%;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}


.message.bot {
    color: #0d0d0d;
    align-self: flex-start;

}

.message.user {
    background: #054f9b;
    color: #fdfdfd;
    align-self: flex-end;
}

/* Footer */
.chatgpt-footer {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.chatgpt-footer textarea {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    resize: none;
    /* impede redimensionar manualmente */
    overflow-y: hidden;
    /* começa sem scroll */
    line-height: 20px;
    /* importante para o cálculo */
    max-height: calc(20px * 3);
    /* 3 linhas */
    padding: 8px;
    font-size: 14px;
}

.chatgpt-footer button {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.loadinggpt {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.loadinggpt span {
    display: inline-block;
    transform-origin: center bottom;
    animation: zoominggg 1.4s infinite ease-in-out;
}

.loadinggpt span:nth-child(1) {
    animation-delay: 0s;
}

.loadinggpt span:nth-child(2) {
    animation-delay: 0.2s;
}

.loadinggpt span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes zoominggg {

    0%,
    40%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    20% {
        transform: scale(2);
        opacity: 1;
    }
}

.chatgpt-body ul {
    margin-bottom: 0 !important;
}

.copy-btn {
    margin-top: 8px;
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #6b6b6b;
    font-size: 12px;
    cursor: pointer;
    border: 1px #ccc solid;
    border-radius: 10px;
    padding: 6px;
}

.copy-btn:hover {
    text-decoration: none;
    background-color: rgb(216, 216, 216);
}

.copy-btn {
    border: 1px #ccc solid;
    border-radius: 10px;
    padding: 6px;
}

.front p {
    color: #eee;
}


.colunas .front p {
    color: #000;
}

.back {
    background: #f0eeee;
    transform: rotateY(180deg);
    border-radius: 10px;
    align-items: flex-start;
}

.todosflips {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 100%
}

.h1-flipcard {
    color: #ffffff;
    text-align: center;

}



.flexhorizontal {
    flex-direction: row !important;
    padding: 80px 12.5%;

    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 600px) {

    navbar h1 {
        font-size: 18px !important;
    }

    .imwgw70 {
        width: 100% !important;
    }


    .todosflips {
        display: flex;
        flex-wrap: wrap !important;
    }

    .containercard {
        min-height: 150px !important;
        margin: 20px !important;

    }

    .flexhorizontal {
        flex-direction: column !important;
    }


}

@media (min-width: 768px) {
    .sidebar .nav-item .nav-link {

        padding: 10px 20px !important;

    }
}


@media only screen and (max-width: 720px) {

    .titulo-com-borda {
        font-size: 12px !important;

    }

    .chatgpt-window {

        width: 100vw;
        right: 0;
        height: 70vh;

        #resizeButton {
            display: none;
        }
    }

    .containercard {
        flex: 100% !important;
        max-width: 100% !important;
    }

    #bodeee {
        background-size: cover !important;
        background-position-x: center !important;
        background-position-y: center !important;
    }

    .video {
        width: 100% !important;
    }

    .nav-link i {
        display: none;
    }

    #selectusuario,
    #filtra_relatorio,
    #selectperfil {
        margin-top: 10px !important;

    }


}

@media only screen and (max-width: 1200px) {}

#selectusuario,
#filtra_relatorio,
#selectperfil,
#cod_produto,
#curso,
label[for="selectusuario"],
label[for="filtra_relatorio"],
label[for="selectperfil"],
label[for="cod_produto"],
label[for="curso"] {
    margin-top: 10px !important;

}

.fr-view pre {
    white-space: pre-wrap !important;
}

.fr-view code {
    white-space: pre !important;
}

.trello {
    overflow-x: auto;
    width: 100%;
    margin: 30px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: space-between;
    justify-content: flex-start;
    align-items: flex-start;
}

.trello .titulo {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
}




#content-wrapper {
    flex: 1 1 auto;
}

.trello .etapas {
    width: 25%;
    min-width: 300px;
    margin: 15px;

    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgb(255, 255, 255);

    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    padding: 10px 0;
    overflow-y: auto;
}

.trello .etapas .card {

    width: 95%;
    margin: 7px auto;

    padding: 8px;
    -webkit-border-top-left-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
    -moz-border-radius-topleft: 8px;
    -moz-border-radius-bottomleft: 8px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;

    background: rgb(255, 255, 255);

    border-radius: 10px;
    border: 1px solid rgb(255, 255, 255);

}


.etapas::-webkit-scrollbar {
    width: 0.2em;
    height: 100px;
}

.etapas::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 80%;

}

.etapas::-webkit-scrollbar-thumb {
    background-color: #ddd;
    outline: 1px solid #000;
    border-radius: 10px;
    height: 80%;

}