/* ================================
   Reset / Base
   ================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

body > header,
body > footer {
  flex-shrink: 0; /* Não permite que header/footer encolham */
}

main.container-fluid {
  flex: 1 1 auto; /* Ocupa o espaço restante entre header e footer */
  overflow-y: auto; /* Permite scroll interno no conteúdo, se necessário */
}

/* ===== Customização do switch padrão do Bootstrap com base nas variáveis do tema ===== */

/* Cor do track (fundo do switch) */
.btn-toggle-theme {
  background-color: var(--background-color) !important;
  border-color: var(--border-color) !important;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s !important;
}

/* Círculo do switch (quando desmarcado) */
.btn-toggle-theme:checked {
  background-color: var(--background-color) !important;
  border-color: var(--border-color) !important;
}

/* Ao focar */
.btn-toggle-theme:focus {
  box-shadow: 0 0 0 0.25rem rgba(221, 213, 117, 0.25) !important;
}

/* Label do switch */
.form-check-label {
  color: var(--text-color) !important;
  font-weight: 500;
  transition: color 0.3s;
}

/* Container do item de switch */
.form-switch.m-3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-logo-svg {
  color: chocolate;
}

.logo-element {
  display: inline-block;
  margin: 0 0.5rem;
  animation: zoomInDown; /* referring directly to the animation's @keyframe declaration */
  animation-duration: 2s; /* don't forget to set a duration! */
}

.nav-link-a,
.navbar-brand-a {
  transition: color 0.5s ease-in-out !important;
}

.nav-link-a:hover,
.navbar-brand-a:hover {
  color: var(--bs-border-color) !important;
  transition: color 0.5s ease-in-out;
}

/* Garante que o título fique dentro da célula */
.fc-daygrid-event {
  white-space: normal !important;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 4px;
  font-size: 0.8rem;
}

/* Impede que os eventos ultrapassem a altura da célula */
.fc-daygrid-day-events {
  overflow: hidden;
}

/* Opcional: limite de altura dos eventos */
.fc-event {
  max-height: 2.5em;
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  flex: content;
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
}

.swiper-slide img {
  border-radius: 5px;
  width: 300px;      /* diminui a largura */
  height: auto;    /* mantém proporção */
  object-fit: cover;
}

.dicography-photo {
  width: 50px;
  height: auto;
  object-fit: cover;
}

/* efeito blur enquanto as fotos carregam */
.blurred {  
  /* efeito embaçado inicial */
  background-color: beige;
  filter: blur(20px);
  transition: filter 0.5s ease-out;
}

/* quando a imagem estiver carregada */
.blurred.loaded {
  filter: blur(0);
}

.not-found-size {
  font-size: 200px;
}