/* === GERAL === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1e1e1e;
  color: #fff;
}

/* === MODAL E FORMULÁRIOS === */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #2d2d2d;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

input[type="text"],
input[type="password"],
input[type="time"],
input[type="date"],
textarea,
button,
label,
select {
  display: inline-block;
  vertical-align: middle;
  margin: 5px 5px 5px 0;
  padding: 6px;
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4caf50;
}

button {
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
}

button:hover {
  background-color: #45a049;
}

.hidden {
  display: none;
}

header {
  background-color: #333;
  padding: 20px;
  text-align: center;
}

footer {
  background-color: #222;
  padding: 10px;
  text-align: center;
}

.controls {
  margin-top: 10px;
  text-align: center;
}

h2 {
  text-align: center;
  padding-top: 20px;
}

/* === TABELA DE COMPROMISSOS === */
#appointmentTable {
  margin: 20px auto;
  border-collapse: collapse;
  width: 95%;
}

#appointmentTable th,
#appointmentTable td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #555;
}

#appointmentTable th {
  background-color: #333;
  color: #fff;
}

#appointmentTable td {
  background-color: #222;
  color: #fff;
}

/* === FULLCALENDAR - TEMA ESCURO COMPLETO === */
#calendar {
  max-width: 900px;
  margin: 20px auto;
  background-color: #1e1e1e;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
}

/* Força tema escuro no FullCalendar */
.fc {
  background-color: #1e1e1e !important;
  color: #fff !important;
}

.fc-toolbar-title {
  color: #fff !important;
}

.fc-col-header-cell-cushion {
  color: #fff !important;
}

.fc-daygrid-day-number {
  color: #ddd !important;
}

.fc-daygrid-day-frame {
  background-color: #121212 !important;
}

.fc-scrollgrid,
.fc-scrollgrid-section,
.fc-scrollgrid-sync-table,
.fc-col-header,
.fc-daygrid-body {
  background-color: #1e1e1e !important;
  color: #fff !important;
  border-color: #333 !important;
}

/* Eventos */
.fc-event {
  background-color: #444 !important;
  color: #fff !important;
  border: 1px solid #777 !important;
  font-weight: bold;
  border-radius: 6px;
  padding: 2px 4px;
}

.fc-event-title,
.fc-event-time {
  color: #fff !important;
}

.fc-event:hover {
  background-color: #666 !important;
}


/* Fundo do calendário */
#calendar {
  background-color: #1e1e1e !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 10px;
  max-width: 900px;
  margin: 20px auto;
}

/* Toolbar (título, botões) */
.fc-toolbar {
  background-color: #222 !important;
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff !important;
  font-weight: bold;
  border: none !important;
}

.fc-toolbar-title {
  color: #fff !important;
  font-size: 1.4em;
}

/* Botões da toolbar */
.fc-button {
  background-color: #2e2e2e !important;
  color: #ddd !important;
  border: none !important;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.3s ease;
}

.fc-button:hover,
.fc-button:focus {
  background-color: #4caf50 !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Cabeçalho dos dias da semana (DOM, SEG, TER...) */
.fc-col-header-cell {
  background-color: #222 !important;
  color: #ddd !important;
  border-bottom: 1px solid #444 !important;
  font-weight: 600;
  text-align: center;
  padding: 6px 0;
}

/* Número dos dias no calendário */
.fc-daygrid-day-number {
  color: #bbb !important;
  font-weight: 600;
}

/* Fundo dos dias (cada célula) */
.fc-daygrid-day {
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
}

/* Fundo das células no mouse hover */
.fc-daygrid-day:hover {
  background-color: #2a2a2a !important;
  cursor: pointer;
}

/* Eventos */
.fc-event {
  background-color: #444 !important;
  color: #fff !important;
  border-radius: 6px !important;
  border: 1px solid #666 !important;
  font-weight: bold;
  padding: 2px 6px !important;
}

.fc-event:hover {
  background-color: #5cb85c !important; /* verde mais claro */
  border-color: #4cae4c !important;
  color: #fff !important;
}

/* Título e horário dos eventos */
.fc-event-title,
.fc-event-time {
  color: #fff !important;
}

/* Remove bordas padrão desnecessárias */
.fc-scrollgrid-section {
  border-color: #222 !important;
}

/* Scrollbar escura, se aplicável */
.fc-scroller {
  scrollbar-color: #555 #222 !important;
  scrollbar-width: thin !important;
}

.fc-scroller::-webkit-scrollbar {
  width: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
  background: #222;
}

.fc-scroller::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
  border: 2px solid #222;
}

.fc .fc-button.fc-prev-button,
.fc .fc-button.fc-next-button,
.fc .fc-button.fc-today-button {
  background-color: green !important;
  border-color: green !important;
  color: white !important;
}
