/* Calendario Interactivo Mensual para Felipe Bike */

.calendar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.calendar-title-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.calendar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-transform: capitalize;
}

.calendar-year-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary-soft);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.calendar-nav-buttons {
  display: flex;
  gap: 0.35rem;
}

.calendar-nav-btn {
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.calendar-nav-btn:hover:not(:disabled) {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  padding: 0.5rem 0;
  letter-spacing: 0.05em;
}

.calendar-day-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  user-select: none;
  background-color: #ffffff;
}

.calendar-day-cell:hover:not(.disabled):not(.selected) {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.calendar-day-cell.today {
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.calendar-day-cell.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.calendar-day-cell.selected {
  background-color: #B77945 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(183, 121, 69, 0.4);
  border-color: #965f33;
}

.calendar-day-cell.disabled {
  color: #cbd5e1;
  background-color: #f8fafc;
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-day-cell.empty {
  background: transparent;
  cursor: default;
}

.calendar-day-cell.has-appointments::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-secondary);
}

/* Leyenda del calendario */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.available {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
}

.legend-dot.selected {
  background-color: var(--color-primary);
}

.legend-dot.today {
  background-color: var(--color-primary-light);
}

.legend-dot.disabled {
  background-color: #e2e8f0;
}
