html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
}
.navbar {
  background-color: #789A98 !important;
}
#menuPrincipal{
  height: 60px;
}
.progress-container {
  height: 5px;
  background-color: #ccc;
  position: relative;
  width: 100%;
}
.progress-bar {
  height: 5px;
  width: 20%;
  background-color: #6bbf59;
}
.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}
.nivelDeAtividade{
  background-color: #789A98;
  opacity: 50%;
  height: 62px;
  padding: 15px 0px 15px 0px;
}
.nivelDeVideosComplementares{
  background-color: #789A98;
  opacity: 50%;
  height: 62px;
  padding-top: 5px;
}
.nivelDeEnviarAtividades{
  background-color: #789A98;
  opacity: 50%;
  height: 62px;
  padding-top: 5px;
}

.breadcrumb-custom span {
  font-weight: bold;
}
.breadcrumb-custom .active {
  color: #198754;
}
.alert-obrigatorio {
  background: #dc3545;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
}
/* .video-container {
  max-width: 600px;
  margin: auto;
} */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-color: #789A98;
  padding: 30px 10px 30px 10px;
  border-radius: 8px;  
  /* EFEITO 3D */
  box-shadow: 4px 6px 0 #5d7f7d, 0 6px 10px rgba(0,0,0,0.2);
  transition: all 0.1s ease-in-out;
}
.nav-btn i {
  font-size: 24px;
  color: white;
}

#AtividadeNum{
  max-width: 160px;
  display: flex;
  align-items: center;
  padding: 10px;
}

.breadcrumb #PeriodoNum{
  float: right;
  padding: 10px;
  max-width: 200px;
}

#tituloAtividades{
  width: 300px;
  text-align: left;
}

/*Videos complementares*/

.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.main-video {
  flex: 3;
  text-align: center;
}

.video-list {
  flex: 1;
  max-width: 250px;
  overflow-y: auto;
}

.video-list .video-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.video-list .video-item:hover {
  background: #f1f1f1;
}

.video-list img {
  width: 100px;
  border-radius: 5px;
}

.video-list p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .video-container {
      flex-direction: column;
  }

  .video-list {
      max-width: 100%;
  }
}


a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}
.navbar-brand {
  width: 49px !important;
}

a {
  color: #0077cc;
}

nav .nav-link, nav a{
  color: white !important;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

#atividadeProgresso{
  height: 45px;
}


.card {
  min-width: 100% !important;
  align-self: stretch;
}

/*Fix o padding da tabela lista de usuarios*/
.container:has(#usuariosList) {
  margin: 0px 10px 0px 10px !important;
}
@media (max-width: 768px) {
  table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }
}

/*btn Piscando*/
 /* Estilizando o botão */
 .btn-piscando {
  background-color: #789A98; /* Fundo do botão */
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Botão piscando (somente no texto dentro do span) */
.texto-piscando {
  animation: piscar 1s infinite alternate;
}
/* .texto-piscando-azul {
  animation: piscarAzul 1s infinite alternate;
} */
/* Animação de piscar */
@keyframes piscar {
  0% { color: white; }
  100% { color: red; }
}
@keyframes piscarAzul {
  0% { color: white; }
  100% { color: blue; }
}

#breadcrumb{
  background-color: #789A98 !important;
  color: white;
  border-radius: 10px;
}
.aumentoEscala {
  transform: scale(0.75);
  transform-origin: top center;
}

/* Desabilita em telas menores que 768px (celulares) */
@media (max-width: 767.98px) {
  .aumentoEscala {
    transform: none;
  }
}
.breadcrumb-active{
  background-color: #000000 !important;
  border-radius: 10px !important;
  padding: 0.1% 1% 0.1% 1% !important;
} 

.breadcrumb-active, 
.breadcrumb-active #periodoNum, 
.breadcrumb-active #aulaNum{
  color: #789A98 !important;
}
/*Animação*/
.blinking-text {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.bg-tertulias {
  background-image: url('/img/tertuliasX.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  width: 60%; /* Ajuste conforme necessário */
  max-width: 600px; /* Limita o tamanho para telas grandes */
  padding: 20px;
  
  /* Centralizar na tela */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Adicionar sombra */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

#avaliacaoContainer {
  margin-top: -100px !important;
}

#envioEmail {
  margin-top: -30px !important;
}

/*Menu principal*/
.navbar-nav .nav-link {
  transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #7af0c4 !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  border-bottom: 2px solid #7af0c4;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: #000 !important;
}

.pagination .page-link {
    color: #0d6efd !important;/* azul Bootstrap */
    font-size: 1rem;
}
.pagination .active .page-link {
    color: white !important;
}
#btnPaginaAnterior, #btnProximaPagina {
    z-index: 999;
}

@media (max-width: 575.98px) {
  #envioEmail.envio-mobile {
    /* margin-top: 3rem !important; */
    margin-bottom: 5rem !important;
    /* padding-top: 3rem !important; */
    padding-bottom: 3rem !important;
  }
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6); /* leve transparência */
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 1050;
    display: flex; /* Flex container! */
}
/* #videoFlutuante {
    position: fixed;
    top: 100px; 
    left: 50%;
    width: 320px;
    height: 180px;
    z-index: 1050;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 10px;
} */
/* #controleAulaTabs {
    background-color: black;
}


#controleAulaTabs .container.mt-4 {
    background-color: black;
}
.card-body {
    background-color: black;
} */

#alertContainer{
    padding: 0 10px;
    width: 100%;
}
/*Tema esculo nos controles do professor*/

#acompanhamentoTabs .nav-tabs .nav-item.show .nav-link.active {
    color: white !important;
    background-color: #000000;
    border-color: #dee2e6 #dee2e6 #fff;
}

#controleAulaTabs a.nav-link.active {
    background-color: black;
    color: white !important;
}

#acompanhamentoTabs body.bg-dark {
    background-color: #121212 !important;
}

#acompanhamentoTabs .nav-pills .nav-link.active {
    background-color: black !important;
    color: #fff !important;
}

#acompanhamentoTabs .bg-body-secondary {
    background-color: #1e1e1e !important;
}

ul li {
    margin-bottom: 0.5rem;
}

input[name$="Comportamento"][value="0"]:checked {
  background-color: red !important; 
  /* cor do Bootstrap para success */
  border-color: red !important;
}

input[name$="Comportamento"][value="1"]:checked {
  background-color: green !important; 
  /* cor do Bootstrap para success */
  border-color: green !important;
}

input[name$="Status"][value="0"]:checked {
  background-color: red !important; 
  /* cor do Bootstrap para success */
  border-color: red !important;
}

input[name$="Status"][value="1"]:checked {
  background-color: green !important; 
  /* cor do Bootstrap para success */
  border-color: green !important;
}
/*Configuração em colunas*/
.duas-colunas {
    column-count: 2;
    column-gap: 2rem;
}

.item-criterio {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.grupo-atividade {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.desktop{
  display: block;
}

.celular{
  display: none;
}

.desktopDatilologia{
  max-width: 600px;
  max-height: 300px;
}



.larguraInputMenuCelular{
  max-width: 250px;
}


@media (max-width: 768px) {
    .duas-colunas {
        column-count: 1;
    }
    .desktop{
      display: none;
    }
    
    .celular{
      display: block;
    }

    .celularDatilologia{
      width: 100%;
    }

    #videoFlutuante {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      max-width: 100vw;
      height: 200px;
      z-index: 9999;
      border: none;
    }
    nav#breadcrumb {
      margin-top: 15%;
    }
    .larguraInputMenuCelular{
      max-width: 100%;
    }
    .texto-piscando-celular{      
      animation: piscarAzul 1s infinite alternate;
    }
    .ratio-16x9-datilologia {
      aspect-ratio: auto !important; /* ou remova o estilo personalizado */
      --bs-aspect-ratio: none;
    }
}

/* input:invalid {
  border: 2px solid red;
} */

input:invalid:focus {
  outline: none;
  box-shadow: 0 0 5px red;
}

@media (min-width: 768px) {
  .ratio-16x9-datilologia {
    --bs-aspect-ratio: calc(9 / 16 * 100%);
  }
}

/* Toque sutil de hover */
.transition { 
  transition: transform .15s ease, 
  box-shadow .15s ease; 
}
.transition:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important; 
}

/*Alertas Home*/
/* metade da tela com rolagem própria */
.col-scroll {
  height: 45vh;            /* metade da altura da viewport */
  overflow: auto;          /* rolagem só dentro da coluna */
}
/* opcional: suaviza o scroll e evita corte de sombra */
.col-scroll::-webkit-scrollbar { width: .6rem; }
.col-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: .5rem; }

/*zoom na presença aluno*/
.zoomable {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.zoomed {
    transform: scale(5.0); /* 150% = zoom de 50% */
    z-index: 1000;
    position: relative;
}
@media (max-width: 576px) {
  /* força o navegador a respeitar larguras nas células */
  .t-alunos { table-layout: fixed; width: 100%; }

  /* 1ª coluna: 25% da tela (ou troque para 25% se preferir do table) */
  .t-alunos th:first-child,
  .t-alunos td:first-child {
    width: 25vw !important;      /* use 25% se quiser relativo à tabela */
    max-width: 30vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}