.status-msg {
  text-align: center;
  padding: 2rem;
  color: #555;
}

.status-msg.error { color: #e63946; }

.detail-page {
  max-width: 800px;
  margin: 0 auto;
}

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

.back-link {
  color: #40916c;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

.header-actions {
  display: flex;
  gap: 0.7rem;
}

.btn {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }
.btn-edit { background: #b7e4c7; color: #1b4332; }
.btn-delete { background: #e63946; color: #fff; }

.detail-card {
  background: #fff;
  border: 1.5px solid #d8f3dc;
  border-radius: 12px;
  padding: 2rem;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-badge {
  background: #d8f3dc;
  color: #2d6a4f;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.recipe-title {
  font-size: 2rem;
  color: #1b4332;
  margin: 0 0 0.5rem;
}

.recipe-desc {
  color: #555;
  font-size: 1rem;
  margin: 0;
}

.rating-block {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.star { color: #f4a522; font-size: 1.3rem; }

.rating-label {
  font-size: 0.9rem;
  color: #777;
  margin-left: 0.2rem;
}

.time-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.time-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  border: 1.5px solid #e9ecef;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  min-width: 90px;
}

.time-chip.total {
  background: #d8f3dc;
  border-color: #b7e4c7;
}

.time-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-top: 0.2rem;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.ingredients-section h2,
.instructions-section h2 {
  font-size: 1.15rem;
  color: #2d6a4f;
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #d8f3dc;
}

.ingredients-list {
  padding-left: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ingredients-list li {
  color: #333;
  font-size: 0.95rem;
}

.instructions-text {
  color: #333;
  line-height: 1.7;
  white-space: pre-line;
  margin: 0;
}
