/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Farm Management Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.button {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.button:hover {
  background-color: #2563eb;
}

.danger {
  background-color: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.danger:hover {
  background-color: #dc2626;
}

.farm {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: white;
}

.farm h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.farm h2 a {
  color: #1f2937;
  text-decoration: none;
}

.farm h2 a:hover {
  color: #3b82f6;
}

.meta {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.empty {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.farm-details .info {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 2rem;
}

.sections h2 {
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: white;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.field input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

.actions {
  margin-top: 1.5rem;
}

#error_explanation {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

#error_explanation h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

#error_explanation ul {
  margin-bottom: 0;
}

/* Events Styles */
.event {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: white;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.action {
  font-weight: 600;
  color: #1f2937;
  text-transform: capitalize;
}

.time {
  color: #6b7280;
  font-size: 0.875rem;
}

.event-details p {
  margin: 0.25rem 0;
  color: #4b5563;
}

.event-details a {
  color: #3b82f6;
  text-decoration: none;
}

.event-details a:hover {
  text-decoration: underline;
}

.particulars {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background-color: #f9fafb;
  border-radius: 0.25rem;
}

.particulars ul {
  margin: 0.25rem 0 0 0;
  padding-left: 1.25rem;
}

.particulars li {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: #4b5563;
}
