/* ======================================
   CATTLEMANIA PASTURES PAGE CSS
   MASTER LAYOUT COMPATIBLE
====================================== */

/* ======================================
   PAGE WRAPPER
====================================== */

.pasture-page {
  width: 100%;
}

/* ======================================
   WIDGET GRID
====================================== */

.pasture-page .widget-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 15px;

  width: 100%;
}

/* ======================================
   BASE WIDGET SYSTEM
====================================== */

.pasture-page .widget {
  width: 100%;

  background: linear-gradient(145deg, #111827, #0b132b);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.pasture-page .widget-header {
  padding: 15px;

  background: #0f172a;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pasture-page .widget-header h3 {
  margin: 0;

  color: #38bdf8;

  font-size: 18px;

  font-weight: 800;
}

.pasture-page .widget-body {
  padding: 20px;
}

/* ======================================
   PASTURE HEADER
====================================== */

.pasture-page .pasture-header-widget {
  width: 100%;

  background: linear-gradient(145deg, #111827, #0b132b);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;

  padding: 25px;

  margin-bottom: 15px;
}

.pasture-page .pasture-header-widget h2 {
  color: white;

  font-size: 26px;

  margin-bottom: 10px;
}

.pasture-page .pasture-header-widget p {
  color: #94a3b8;
}

/* ======================================
   FORMS
====================================== */

.pasture-page form {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.pasture-page label {
  color: #cbd5e1;

  font-weight: 700;
}

.pasture-page input {
  width: 100%;

  padding: 12px;

  background: #020617;

  color: white;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 10px;
}

.pasture-page input:focus {
  outline: none;

  border-color: #38bdf8;
}

/* ======================================
   BUTTONS
====================================== */

.pasture-page .widget-button {
  width: 100%;

  padding: 12px;

  background: #1e90ff;

  color: white;

  border-radius: 10px;

  text-decoration: none;

  font-weight: 800;

  text-align: center;

  border: none;

  cursor: pointer;

  transition: 0.25s;
}

.pasture-page .widget-button:hover {
  background: #38bdf8;

  transform: translateY(-2px);
}

.pasture-page .delete-button {
  background: #dc2626;

  color: white;

  padding: 9px 14px;

  border-radius: 10px;

  text-decoration: none;

  font-weight: 800;
}

.pasture-page .delete-button:hover {
  background: #ef4444;
}

/* ======================================
   PASTURE LIST
====================================== */

.pasture-page .pasture-card {
  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 15px;

  padding: 15px;

  background: #020617;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  margin-bottom: 10px;
}

.pasture-page .pasture-info {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.pasture-page .pasture-title {
  color: white;

  font-size: 18px;

  font-weight: 800;
}

.pasture-page .pasture-meta {
  color: #94a3b8;

  font-size: 13px;
}

.pasture-page .pasture-actions {
  display: flex;

  gap: 10px;
}

/* ======================================
   EMPTY STATE
====================================== */

.pasture-page .empty-state {
  padding: 25px;

  text-align: center;

  color: #94a3b8;

  background: #020617;

  border-radius: 12px;
}

/* ======================================
   ALERTS
====================================== */

.pasture-page .widget-success {
  background: #166534;

  color: white;

  padding: 12px;

  border-radius: 10px;

  margin-bottom: 10px;
}

.pasture-page .widget-error {
  background: #991b1b;

  color: white;

  padding: 12px;

  border-radius: 10px;

  margin-bottom: 10px;
}

/* ======================================
   STATS
====================================== */

.pasture-page .stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 12px;

  margin-bottom: 15px;
}

.pasture-page .stat-box {
  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  padding: 18px;

  text-align: center;
}

.pasture-page .stat-number {
  font-size: 30px;

  font-weight: 900;

  color: #38bdf8;
}

.pasture-page .stat-label {
  margin-top: 5px;

  color: #94a3b8;

  font-size: 13px;
}

/* ======================================
   TABLET / MOBILE
====================================== */

@media (max-width: 900px) {
  .pasture-page .widget-grid {
    grid-template-columns: 1fr;
  }

  .pasture-page .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pasture-page .pasture-card {
    flex-direction: column;

    align-items: flex-start;
  }

  .pasture-page .pasture-actions {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .pasture-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .pasture-page .pasture-actions {
    flex-direction: column;
  }

  .pasture-page .pasture-actions a {
    width: 100%;

    text-align: center;
  }
}
