body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

.footer {
  margin-top: auto;
}

/* Card styling */
.card {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Recipe detail page */
.recipe-meta {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.recipe-meta i {
  color: #6c757d;
}

.recipe-ingredients li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

.recipe-instructions .instruction-step {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.step-images img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.step-images img:hover {
  transform: scale(1.05);
}

/* Form styling */
.ingredient-item, .instruction-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.remove-ingredient, .remove-instruction {
  padding: 0.25rem 0.5rem;
}

/* Image upload and preview */
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.remove-image, .remove-preview {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

.image-upload {
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 2px dashed #dee2e6;
}

/* Categories */
.badge {
  padding: 0.5rem 1rem;
  font-weight: normal;
}

/* Search form */
.search-form {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Recipe form */
#recipeForm {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Lightbox customization */
.lb-data .lb-caption {
  font-size: 1.2rem;
  font-weight: bold;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recipe-meta .row > div {
    margin-bottom: 1rem;
  }
  
  .search-form .row > div {
    margin-bottom: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .d-flex.gap-2 {
    flex-direction: column;
  }

  .step-images img {
    height: 120px;
  }

  .instruction-item {
    padding: 1rem 0.5rem;
  }
}

/* Animations */
.card, .btn, .step-images img {
  transition: all 0.3s ease;
}

/* Print styles */
@media print {
  .navbar, .footer, .recipe-actions {
    display: none;
  }
  
  .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .card {
    box-shadow: none;
  }

  .step-images {
    page-break-inside: avoid;
  }

  .instruction-step {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
