/* Estilos base */

body {
  padding-top: 56px; /* To ensure the navbar doesn't overlap content */
}
@media (min-width: 992px) {
  body {
    padding-top: 56px; /* Adjust based on the height of your navbar */
  }
}
@media (max-width: 991px) {
  body {
    padding-top: 80px; /* Increase padding for smaller screens if necessary */
  }
}

/* Configurações navbar*/
.nav-link::before {
  font-family: "Font Awesome 6 Free"; /* Fonte do Font Awesome 6 */
  font-weight: 900; /* Define os ícones sólidos */
  margin-right: 12px; /* Espaçamento entre ícone e texto */
  margin-left: 20px;
  color: #fff !important;
}

.img-hover-zoom {
  overflow: hidden;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
  filter: brightness(50%);
}

.img-hover-zoom img {
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
  width: 100%;
}

.date-overlay {
  position: absolute;
  bottom: 0;
  color: white;
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 5px 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.img-hover-zoom:hover .date-overlay {
  opacity: 1;
}

.overlay-text {
  transition: transform 0.5s ease;
  transform: scale(1);
}

.img-hover-zoom:hover .overlay-text {
  transform: scale(0.909) translateX(-15%);
}

.carousel-inner img {
  width: 100%;
  height: auto;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-date {
  margin-right: auto;
  padding: 10px;
  color: #6c757d;
}

/* Navbar*/

.navbar-nav .nav-item {
  margin-right: 10px; /* Ajuste a distância conforme necessário */
}

.navbar-nav .nav-link {
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #00bfff;
}

/* Media Queries */
@media (max-width: 768px) {
  .modal-body.d-flex {
    display: block !important;
  }

  .modal-body .w-50 {
    width: 100% !important;
  }

  .modal-body .w-50 img,
  .modal-body .w-50 .carousel {
    margin-bottom: 20px;
  }

  .modal-footer {
    flex-direction: column;
    align-items: center;
  }

  .modal-footer .modal-date {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .modal-footer > div {
    width: 100%;
    text-align: center;
  }

  .modal-footer .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
/* Cadastro de Posts */

@media (max-width: 768px) {
  .form-row .col-md-6 {
    width: 100% !important;
    margin-bottom: 15px;
  }

  .form-row .col-md-6:last-child {
    margin-bottom: 0;
  }
}
/* Estilos do loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff; /* Cor de fundo enquanto carrega */
  z-index: 9999;
}

/* Animação simples do loader */
.spinner {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
