#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 10px;
}

/* Estilos para la navegación del mes */
#month-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

#month-navigation button.arrow {
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  color: #007bff;
}

#month-navigation h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0 20px;
}

#month-year {
  font-size: 18px;
  font-weight: bold;
  margin: 0 20px;
}

#calendar-legend {
  text-align: center;
  margin-top: 15px;
}

.calendar-legend-item {
  display: inline-block;
  margin: 0 10px;
  text-align: center;
}

.calendar-legend-color {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

.today {
  background-color: #007bff;
  border-radius: 10px;
}

.event {
  background-color: #28a745;
  border-radius: 10px;
}

.selected {
  background-color: #dcb02f !important;
  border-radius: 10px;
}

.bank-holiday {
  background-color: rgb(240, 90, 90) !important;
  border-radius: 10px;
}

.not-available {
  background-color: #444;
  border-radius: 10px;
}

.available {
  background-color: #ddd; /* Gris medio */
  border-radius: 10px;
}

.available:hover {
  background-color: #ccc; /* Gris oscuro */
  border-radius: 10px;
}

.professional-holiday {
  background-color: orange;
  border-radius: 10px;
}

#legend p {
  margin-top: 5px;
  font-size: 14px;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hours {
  margin-top: 30px;
  text-align: center;
}

.hours h3 {
  margin-bottom: 20px;
}

.hour {
  background-color: white;
  margin: 5px;
  width: 120px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.hour:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

/* Style for the note section */
#note-section {
  margin: 30px auto;
  width: 50%;
  text-align: left;
}

/* Label styling */
#note-section label {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 8px;

  /* Center the label */
  text-align: center; /* Center the text inside the label */
  width: 100%; /* Make the label take the full width */
}

/* Textarea styling */
#note-section textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  box-sizing: border-box;
}

/* Focus effect */
#note-section textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Placeholder style */
#note-section textarea::placeholder {
  color: #888;
  font-style: italic;
}

/* Container for the select field */
.select-user-container {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers content horizontally */
  text-align: center; /* centers the label text */
}

/* Label styling */
.select-user-container label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #333;
}

/* Styled select */
.select-user-container select {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  width: 50%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: left; /* keep options aligned left inside */
}

/* Focus state */
.select-user-container select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
  background-color: white;
}

/* ==================================
   LABELS DE PROFESIONALES TIPO CHIP
   ================================== */

/* Contenedor de chips por día */
.day-professional-colors-rectangular {
  display: flex;
  flex-wrap: wrap; /* Permite que los chips pasen a la siguiente fila */
  justify-content: center;
  gap: 4px; /* Mayor espacio entre chips */
  margin-top: 3px;
  /* Sin max-height ni scroll */
}

/* Cada chip de línea (rectangular con color e iniciales) */
.professional-chip-rectangular {
  padding: 4px 12px; /* Añadimos más espacio alrededor del texto */
  border-radius: 8px; /* Esquinas ligeramente redondeadas */
  color: #fff;
  font-size: 12px; /* Aumentamos el tamaño del texto */
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  border: 1px solid #fff;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  white-space: nowrap; /* Evita que el texto se rompa */
}

/* ==================================
   LABELS DE PROFESIONALES TIPO LINEA
   ================================== */

/* Contenedor de chips por día */
.day-professional-colors-line {
  display: block; /* Cambiamos a bloque para que los nombres ocupen toda la línea */
  margin-top: 3px;
  padding: 0 5px; /* Un pequeño espacio alrededor del contenedor */
}

/* Cada chip de línea (rectangular con color e iniciales) */
.professional-chip-line {
  display: block; /* Hace que cada chip ocupe toda la línea */
  width: 100%; /* Hace que el chip ocupe todo el ancho disponible */
  padding: 0px 12px; /* Reducido el padding para que el alto sea más pequeño */
  border-radius: 0px; /* Bordes cuadrados */
  color: #fff;
  font-size: 14px; /* Reducimos el tamaño del texto */
  font-weight: bold;
  text-align: left; /* Alineamos el texto a la izquierda */
  cursor: default;
  border: none; /* Eliminamos el borde */
  box-shadow: none; /* Quitamos la sombra */
  margin-bottom: 0px; /* Un poco de espacio entre las líneas */
  background-color: #007bff; /* Color de fondo (puedes cambiarlo) */
  white-space: nowrap; /* Evita que el texto se rompa */

  /* Esto añade un borde alrededor de las letras */
  /*
  -webkit-text-stroke: 1px #333;
  -moz-text-stroke: 1px #333;
  text-stroke: 1px #333;
  */
}
