body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 30px;
  color: #212121;
}
.header {
  text-align: center;
  margin-bottom: 30px;
  position: relative; /* Permite posicionamento relativo para o botão de login */
}
.header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  margin-top: 10px;
}
.logo {
  max-width: 220px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
#loginButton {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #28a745; /* Verde para login */
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000; /* Garante que fique acima de outros elementos */
}
#loginButton:hover {
  background: #218838;
  transform: translateY(-1px);
}
.controls {
  text-align: center;
  margin-bottom: 30px;
}
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.filters label {
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  display: flex;
  align-items: center;
  gap: 5px;
}
.filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.filters select:focus {
  outline: none;
  border-color: #007bff;
}
.toggle-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.toggle-switch span {
  font-size: 14px;
  font-weight: 600;
  color: #212121;
}
.toggle-switch .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.toggle-switch .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 20px;
  transition: background-color 0.2s ease;
}
.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.toggle-switch .switch input:checked + .slider {
  background-color: #007bff;
}
.toggle-switch .switch input:checked + .slider:before {
  transform: translateX(20px);
}
.filters .clear-button {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #666;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.filters .clear-button:hover {
  background: #555;
  transform: translateY(-1px);
}
.date-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.view-selection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.view-selection span {
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  display: flex;
  align-items: center;
  gap: 5px;
}
.controls input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 14px;
  width: 120px;
  transition: border-color 0.2s ease;
}
.controls input:focus {
  outline: none;
  border-color: #007bff;
}
.nav-button, .view-button, .export-button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #007bff;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-button:hover, .view-button:hover, .export-button:hover {
  background: #0056b3;
  transform: translateY(-1px);
}
.view-button.active {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.arrow-button {
  padding: 8px 12px;
  font-size: 14px;
  background: #f0f0f0;
  color: #212121;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.arrow-button:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}
.calendar-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.room {
  flex: 1;
  background: #e6f0ff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 0 8px;
  padding: 0;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.room h3 {
  text-align: center;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: #007bff;
  padding: 10px;
  border-radius: 8px 8px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.room .events {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}
.event {
  margin: 5px 0;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.4;
}
.event.santa-casa {
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.event.externo {
  background-color: #FFF9C4;
  border-color: #FFF59D;
}
.event strong {
  font-weight: 600;
}
.day-section {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.day-section strong {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  color: #555;
}
.day-section strong::before {
  content: '\f073';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
}
/* Estilos para o modo de agendamento */
.availability-mode .event.unavailable {
  background: #d3d3d3;
  color: #555;
  opacity: 0.8;
}
.availability-mode .event.available {
  background: #C8E6C9; /* Verde claro para horários disponíveis */
  color: #212121;
}
.availability-mode .event.unavailable-santa-casa {
  background: #d3d3d3;
  color: #555;
  opacity: 0.8;
  text-align: center;
  font-style: italic;
}
.flatpickr-calendar {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.flatpickr-day.selected {
  background: #007bff;
  border-color: #007bff;
}

/* Responsividade */
@media (max-width: 768px) {
  .calendar-container {
    flex-direction: column;
    align-items: center;
  }
  .room {
    width: 100%;
    max-width: 500px;
    margin: 10px 0;
    height: auto;
    min-height: 200px;
  }
  .controls input {
    width: 100px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }
  .logo {
    max-width: 150px;
  }
  .filters {
    flex-direction: column;
    gap: 15px;
  }
  .date-navigation {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .view-selection {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .controls input, .controls button, .filters select {
    width: 100%;
    max-width: 200px;
  }
}
.book-button {
  background-color: #4CAF50;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 5px;
}

.book-button:hover {
  background-color: #45a049;
}

.book-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Estilo para eventos com situação "Realizada" */
.event.realizada {
  background: #2E7D32; /* Verde escuro */
  color: white;
}

/* Estilo para o modal de login */
#loginModal .modal-content {
  max-width: 400px;
  text-align: center;
}

#loginModal h2 {
  margin-bottom: 20px;
  color: #212121;
  font-size: 20px;
  font-weight: 600;
}

#loginModal label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #212121;
}

#loginModal input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 14px;
}

#loginModal .button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #28a745;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#loginModal .button:hover {
  background: #218838;
}

.login-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.login-close:hover,
.login-close:focus {
  color: black;
  text-decoration: none;
}

.event p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.4;
}

.event p strong {
  color: #495057;
  font-weight: 600;
}

/* Estilo específico para a forma de pagamento */
.forma-pagamento {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

.seguro {
  font-size: 0.9em;
  color: #2c5282; /* Azul mais escuro para destaque */
  font-style: italic;
  display: block;
  margin-top: 4px;
  padding: 2px 6px;
  background-color: rgba(44, 82, 130, 0.1); /* Fundo azul claro */
  border-radius: 4px;
  position: relative;
  padding-left: 20px; /* Espaço para o ícone */
}

.seguro::before {
  content: '\f132'; /* Ícone de escudo do Font Awesome */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  color: #2c5282;
}