/* General Styles */
.time_field_container {
  margin: .5rem;
  min-height: 0;
}

.time_field {
  /* Reuse common input styles */
  @extend .input;
  height: 2rem;
}

/* Time Component Styles */
.time-field-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

.time-field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-field-label-text {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
}

.time-field-required {
  color: #dc2626;
  margin-left: 2px;
}

.time-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  transition: all .2s ease;
}

.time-field-wrapper.focused {
  box-shadow: 0 0 0 2px #3b82f680;
  border-radius: 6px;
}

.time-field {
  /* Reuse common input styles */
  @extend .input;
  padding-right: 64px;
}

.time-field-actions {
  position: absolute;
  right: 8px;
  display: flex;
  gap: 4px;
}

.time-field-now,
.time-field-clear {
  /* Reuse common button styles */
  @extend .btn;
  padding: 4px;
}

.time-field-now:hover:not(:disabled),
.time-field-clear:hover:not(:disabled) {
  color: #374151;
  background-color: #f3f4f6;
}

.time-field-now:disabled,
.time-field-clear:disabled {
  /* Reuse common disabled button styles */
  @extend .btn-disabled;
}

.time-field:hover:not(.disabled) {
  border-color: #9ca3af;
}

.time-field:focus {
  outline: none;
  border-color: #3b82f6;
}

.time-field.error {
  /* Reuse common error input styles */
  @extend .input-error;
}

.time-field.disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.time-field-error {
  font-size: .75rem;
  color: #dc2626;
  min-height: 1rem;
}

.time-field-error-placeholder {
  min-height: 1rem;
}

/* Size Variants */
.time-field-sm .time-field {
  padding: 6px 12px;
  padding-right: 56px;
  font-size: .75rem;
}

.time-field-sm .time-field-actions svg {
  width: 14px;
  height: 14px;
}

.time-field-lg .time-field {
  padding: 10px 16px;
  padding-right: 72px;
  font-size: 1rem;
}

.time-field-lg .time-field-actions svg {
  width: 18px;
  height: 18px;
}

/* Time Slots */
.time-slots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.available-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.slots-label {
  font-size: .875rem;
  color: #374151;
  margin-right: 8px;
}

.slot-button {
  /* Reuse common button styles */
  @extend .btn;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: .875rem;
}

.slot-button:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.slot-button.selected {
  border-color: #3b82f6;
  background-color: #3b82f6;
  color: #fff;
}
