/* ===============================
   🎨 Tema Inovadança — Cores & Layout
   =============================== */

   :root {
    --inova-azul: #007bff;
    --inova-azul-claro: #0BAFEE;
    --inova-preto: #111;
    --inova-branco: #fff;
    --inova-cinza: #f8f9fa;
  }
  
  /* ===== Corpo geral ===== */
body {
    background-color: var(--inova-cinza);
    color: var(--inova-preto);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  
  /* ===== Cabeçalho ===== */
  #header-inovadanca {
    border-left: 5px solid var(--inova-azul);
  }
  
  /* ===== Botões ===== */
  .btn-primary {
    background-color: var(--inova-azul);
    border: none;
    transition: 0.2s ease-in-out;
  }
  .btn-primary:hover {
    background-color: var(--inova-azul-claro);
    transform: translateY(-1px);
  }
  
  /* ===== FAB Moderno (Floating Action Button) ===== */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
}

  
  /* ===== Eventos no calendário ===== */
  .fc-event {
    border-radius: 8px !important;
    padding: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }
  
  /* ===== Cartões e modais ===== */
  .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

  /* ===============================
   📅 Calendário — Visual Moderno
   =============================== */

/* Container principal do calendário */
#calendar {
  background: var(--inova-branco);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

/* Cada célula de horário */
.fc-timegrid-slot {
  border-color: #e9ecef !important;
}

/* Cabeçalho dos dias */
.fc-col-header-cell {
  background: var(--inova-azul);
  color: white;
  font-weight: 600;
  border: none;
}

.fc .fc-col-header-cell-cushion {
  color: #fff !important;
  text-decoration: none;
}

/* ===== Eventos ===== */
.fc-event {
  border-radius: 10px !important;
  padding: 4px 6px !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  border: none !important;
  transition: transform 0.15s ease;
}

.fc-event:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

/* Aula fixa (cinza) */
.fc-event.fixed-class {
  background: #343a40 !important;
  color: #fff !important;
}

/* Reserva (azul) */
.fc-event:not(.fixed-class) {
  background: var(--inova-azul) !important;
  color: #fff !important;
}

/* ===== Modais ===== */
.modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.modal-header {
  background-color: var(--inova-azul);
  color: var(--inova-branco);
  border-bottom: none;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.modal-title {
  font-weight: 600;
}

.modal-footer {
  border-top: none;
}

/* ===== Refinamento Mobile ===== */
@media (max-width: 991.98px) {
  .content-container.container {
    padding-inline: 0.75rem;
  }

  .fc .fc-mobileViewLabel-button {
  background: transparent !important;
  border: none !important;
  color: #111 !important;
  font-weight: 700;
  pointer-events: none;
  padding-inline: 0.2rem !important;
}

  #header-inovadanca {
    gap: 0.5rem;
    align-items: flex-start !important;
    flex-wrap: wrap;
    padding: 0.9rem !important;
  }

  #header-inovadanca .badge {
    white-space: normal;
    text-align: left;
    font-weight: 500;
  }

  #calendar { padding: 6px; border-radius: 12px; }

  .fc .fc-toolbar {
    gap: 0.5rem;
    margin-bottom: 0.65rem !important;
  }

  .fc .fc-toolbar.fc-header-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .fc .fc-toolbar-title {
    font-size: 1rem !important;
    line-height: 1.25;
    text-align: center;
    margin: 0.1rem 0 0.2rem !important;
  }

  .fc .fc-button {
    padding: 0.36rem 0.5rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
  }

  .fc .fc-timegrid-axis-cushion,
  .fc .fc-timegrid-slot-label-cushion {
    font-size: 0.68rem;
  }

  .fc .fc-timegrid-slot {
    min-height: 2.35rem;
  }

  .fc .fc-col-header-cell-cushion {
    font-size: 0.76rem;
    white-space: normal;
    line-height: 1.1;
    padding: 0.3rem 0.2rem;
  }

  .fc-event {
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
    padding: 2px 4px !important;
  }

  .modal-dialog {
    margin: 0.7rem;
  }
}

@media (max-width: 767.98px) {
  .row.g-3 {
    --bs-gutter-y: 0.7rem;
    --bs-gutter-x: 0.7rem;
  }

  .p-3.border.rounded.bg-white.shadow-sm {
    padding: 0.75rem !important;
  }

  hr.my-2 {
    margin-block: 0.45rem !important;
  }
}
/* Header home: foto do perfil */
.header-profile-photo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #0bafee;
}

.header-profile-fallback {
  width: 40px;
  height: 40px;
  background: #eef2f7;
  color: #5b6470;
  border: 2px solid #d9dde3;
}

.calendar-mobile-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.calendar-mobile-controls .btn {
  min-width: 92px;
  border-radius: 999px;
  font-weight: 600;
}

.calendar-mobile-controls .btn.active {
  background: var(--inova-azul);
  color: #fff;
  border-color: var(--inova-azul);
}

@media (max-width: 767.98px) {
  #header-inovadanca {
    align-items: center !important;
  }

  #header-inovadanca h5 {
    font-size: 0.98rem;
  }

  .header-profile-photo,
  .header-profile-fallback {
    width: 34px;
    height: 34px;
  }

  .fc .fc-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .fc .fc-toolbar-chunk:first-child { justify-content: flex-start; }
  .fc .fc-toolbar-chunk:nth-child(2) { justify-content: center; }
  .fc .fc-toolbar-chunk:last-child { justify-content: flex-end; }

  .fc .fc-prevStep-button,
  .fc .fc-nextStep-button {
    border-radius: 999px !important;
    padding: 0.28rem 0.58rem !important;
    font-size: 0.88rem !important;
  }
}