.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background-color: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  padding: 2px;
}

.calendar-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

.calendar-day {
  background: white;
  padding: 1rem 0.5rem;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  position: relative;
  border-radius: 8px;
}

.calendar-day:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-day.available {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  color: #2d5016;
  border: 2px solid #66bb6a;
}

.calendar-day.occupied {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border: 2px solid #f44336;
  cursor: not-allowed;
}

.calendar-day.maintenance {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #f57c00;
  border: 2px solid #ffc107;
  cursor: not-allowed;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border: 3px solid #2196f3;
  transform: scale(1.1);
  z-index: 3;
}

.calendar-day.other-month {
  opacity: 0.3;
  background: #f8f9fa;
  color: #6c757d;
}

.calendar-day.today {
  font-weight: 700;
  position: relative;
}

.calendar-day.today::after {
  content: "•";
  position: absolute;
  bottom: 4px;
  color: #2196f3;
  font-size: 1.2rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-block;
}

.legend-color.available {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border: 2px solid #66bb6a;
}

.legend-color.occupied {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #f44336;
}

.legend-color.maintenance {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 2px solid #ffc107;
}

.legend-color.selected {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid #2196f3;
}

.legend-item {
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .calendar-day {
    min-height: 50px;
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }

  .calendar-header {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Reduce el tamaño del texto para los elementos .text-muted en index.pug */
.text-muted {
  font-size: 0.95rem;
}
