/* Recipe content styling */
.recipe-content ul {
  list-style-type: none;
  padding-left: 0;
  margin: 1rem 0;
}
.recipe-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
  line-height: 1.6;
}
.recipe-content ul li:before {
  content: "•";
  color: #f59e0b;
  font-weight: bold;
  position: absolute;
  left: 0;
}
.recipe-content ol {
  list-style-type: none;
  padding-left: 0;
  margin: 1rem 0;
  counter-reset: step-counter;
}
.recipe-content ol li {
  position: relative;
  padding-left: 3rem;
  margin: 1.5rem 0;
  line-height: 1.6;
  counter-increment: step-counter;
}
.recipe-content ol li:before {
  content: counter(step-counter);
  background: #f59e0b;
  color: white;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* Ingredient checkbox styling */
.ingredient-checkbox {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.ingredient-checkbox:checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}
.ingredient-checkbox:checked::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}
.ingredient-checkbox:hover {
  border-color: #f59e0b;
}

/* Servings counter styling */
.servings-counter button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

/* Inline editing styles */
.editable-title {
  background: transparent;
  border: 2px solid transparent;
  padding: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  resize: none;
  overflow: hidden;
  line-height: 1.1;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  min-height: auto;
}
.editable-title:hover,
.editable-title:focus {
  background-color: #fafaf9;
  outline: none;
}

.editable-input {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
}
.editable-input:hover,
.editable-input:focus {
  background-color: #fafaf9;
  outline: none;
}

.editable-textarea {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  resize: none;
  min-height: 1.5rem;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
}
.editable-textarea:hover,
.editable-textarea:focus {
  background-color: #fafaf9;
  outline: none;
}

/* Add item buttons */
.add-item-btn {
  background: white;
  color: #10b981;
  border: 2px solid #10b981;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.add-item-btn:hover {
  background: #10b981;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

/* Remove item buttons */
.remove-item-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.7;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.remove-item-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Drag handle styles */
.drag-handle {
  cursor: grab;
  padding: 0.5rem;
  color: #9ca3af;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.drag-handle:hover {
  color: #6b7280;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Editable item styling */
.editable-item {
  position: relative;
  padding: 0.125rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.125rem 0;
}

.editable-item:hover {
  background-color: #fafaf9;
}

/* Drag and drop states */
.editable-item.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.editable-item.drag-over {
  border-color: #10b981;
  background-color: #f0fdf4;
}

/* Servings counter for edit mode */
.servings-edit-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.servings-edit-container button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.servings-edit-container button:hover {
  background: #f1f5f9;
  color: #334155;
}

.servings-edit-container input {
  width: 1.5rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: bold;
  font-size: 1rem;
  color: #334155;
}

.servings-edit-container input:focus {
  outline: none;
}

/* Gallery select styling */
.gallery-select {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  min-height: 2.5rem;
  max-height: 6rem;
  overflow-y: auto;
}
.gallery-option {
  padding: 0.25rem 0;
  cursor: pointer;
  user-select: none;
}
.gallery-option:hover {
  background-color: #f3f4f6;
}

/* Category tags styling */
.category-input-container #id_categories {
  display: none;
}

.category-tag {
  position: relative;
  transition: all 0.2s ease;
}

.category-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-tag button:hover {
  background-color: rgba(217, 119, 6, 0.1);
  border-radius: 50%;
} 