  /* Ajusta o layout principal */
.principal-div {
    display: flex;
    flex-direction: row;  /* Itens lado a lado */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;  /* Permite quebrar linha se necessário */
}

/* Criação da sidebar para imagens */
.sidebar {
    width: 25%; /* Ocupa 25% da tela em desktops */
    min-width: 200px; /* Garante tamanho mínimo */
    background: #f8f9fa; /* Cor de fundo leve */
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ajusta os cards dentro da sidebar */
.sidebar .card {
    width: 100%;
    margin-bottom: 15px;
}

.painel-grupos {
  padding: 20px;
  width: 100%;
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px #0002;
}

.lista-grupos {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grupo-card {
  padding: 15px;
  border-radius: 8px;
  background: #f4f4f4;
  border: 1px solid #ddd;
}

.grupo-card h3 {
  margin: 0;
  display: flex;
  justify-content: space-between;
}

.grupo-usuarios {
  margin-top: 10px;
  padding: 10px;
  background: #fafafa;
  border-left: 3px solid #999;
  display: none;
}

.grupo-botoes {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.acoes-grupos {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

.container-div{
  background-image: url('https://drive.google.com/thumbnail?id=1j5DIucp537QnqzGBPlo32Ghf_U1Eftkw&sz=s1920');
  background-repeat: no-repeat;
  font-family: 'Numans', sans-serif;
  opacity: 0.4;
  background-size: contain;
  background-color:#62e0ec;
  position: fixed;
  margin: 0;
  width:100%;
  height: 100%;
}  

.secondary-div{
  padding: 30px;
  gap:20px;
}

.principal-div{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
}

.loading {
  position:fixed;
  justify-content: center;
  top:0;
  left:0;
  z-index:10000;
  width:100vw;
  height:100vh;
  background-color: rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* background-color:  #FFFFFF;*/
}


.menu{
  width: 50%;
  padding: 10px;
  font-size: 20px;
} 

.btn-primary{
  font-size: 20px;
  width: 100%; 
  height: 50%;
}

.headers{
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.card1{
  width: 12rem;
  padding:15px;
}
.card-title{
    font-size:18px;
  }
.card2{
  width: 12rem;
  padding:15px;
  margin-top:10px
}

@media screen and (min-height: 300px) and (max-width: 600px) {

  .container-div{
  background-image: url('https://drive.google.com/thumbnail?id=1L09QIQBJ25rtGaHQV5aSwTgmXlcBqVdN&sz=s1100');
  background-repeat: no-repeat;
  font-family: 'Numans', sans-serif;
  opacity: 0.4;
  background-size: contain;
  background-color:#62e0ec;
  position: fixed;
  margin: 0;
  width:100%;
  height: 100%;
  }

  .card-img-top{
    width:50px;
  }
  
  .principal-div{
    display:block;
    margin:50px;
    align-items:center;
    justify-content: center;
     flex-direction: column; /* Empilha os elementos no mobile */
  }

  .card-title{
    font-size:12px;
  }

  .card1{
    width: 8rem;
    padding:10px;
  }

  .card2{
    width: 8rem;
    padding:8px;
    margin-top:5px;
  }

  .secondary-div{
   
    padding:20px;
  }



    .sidebar {
        width: 100%;
        flex-direction: row; /* Alinha os cards na horizontal */
        overflow-x: auto; /* Permite rolagem horizontal */
        white-space: nowrap;
        padding: 10px 0;
    }

    .sidebar .card {
        width: auto;
        flex: 0 0 45%; /* Ajuste para mostrar 2 cards por vez */
        margin-right: 10px;
    }

}