.fca-calendar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.fca-calendar-month-title {
  font-size: 18px;
  font-weight: bold;
  min-width: 150px;
  text-align: center;
  color: #333;
}

.fca-calendar-controls .button {
  padding: 8px 15px;
}

.fca-calendar {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.fca-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.fca-calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.fca-calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.fca-calendar-cell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: 2px solid #ddd;
  background: #fff;
  position: relative;
  cursor: default;
}

.fca-calendar-dow {
  min-height: 44px;
  background: #0073aa;
  color: #fff;
  border: none;
  cursor: default;
  font-weight: bold;
}

.fca-calendar-empty {
  min-height: 72px;
  border: none;
  background: transparent;
  cursor: default;
}

.fca-calendar-day {
  position: relative;
  transition: all 0.2s ease;
}

.fca-calendar-day-num {
  font-size: 16px;
  font-weight: bold;
}

.fca-calendar-day.is-booked {
  background: #f8d7da;
  border-color: #c3212f;
  color: #721c24;
  cursor: not-allowed;
}

.fca-calendar-day.is-disabled {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #6c757d;
  cursor: not-allowed;
}

.fca-calendar-day.is-rule-blocked {
  background: #f1f3f5;
  border-color: #6c757d;
  color: #495057;
  cursor: not-allowed;
  text-decoration: line-through;
}

.fca-calendar-day.is-available {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
  cursor: pointer;
}

.fca-calendar-day.is-available:hover {
  background: #c3e6cb;
  border-color: #1e7e34;
  transform: scale(1.05);
}

.fca-calendar-day.is-selected {
  background: #d9ecff;
  border-color: #0073aa;
  color: #0a3f60;
}

.fca-calendar-day.is-range-start,
.fca-calendar-day.is-range-end {
  border-color: #005177;
  box-shadow: inset 0 0 0 2px rgba(0, 115, 170, 0.18);
}

.fca-calendar-day.is-single-selected {
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
}

.fca-calendar-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  padding: 2px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  font-weight: bold;
}

.fca-calendar-badge-valid {
  background: rgba(40, 167, 69, 0.2);
}

.fca-calendar-badge-rule {
  background: rgba(108, 117, 125, 0.25);
  color: #343a40;
}

.fca-calendar-day.is-booked .fca-calendar-badge {
  background: rgba(193, 33, 47, 0.2);
  color: inherit;
}

.fca-calendar-help {
  padding: 12px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  margin: 0;
  font-size: 14px;
  color: #856404;
}

.fca-calendar-selection-status {
  margin-top: 10px;
  padding: 12px;
  background: #e7f3ff;
  border-left: 4px solid #0073aa;
  border-radius: 4px;
  color: #0a3f60;
  font-size: 14px;
  font-weight: 600;
}

#fca_clear_selection_link {
  margin-left: 8px;
  font-weight: 600;
}
