/* ================================
   Thème Agritrace - Agriculture moderne
   ================================ */




.connect {

  width: 100px;
}

:root {
  --agri-green: #1b6f3a;
  --agri-green-soft: #e7f5ec;
  --agri-accent: #f7b500;
  --agri-bg: #f5f7fb;
  --agri-card: #ffffff;
  --agri-text: #1f2933;
  --agri-muted: #7b8794;
  --agri-border: #e1e7f0;

  --agri-radius-lg: 16px;
  --agri-radius-md: 12px;
  --agri-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Reset léger */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--agri-text);
  background: radial-gradient(circle at top, #edf7f3 0, var(--agri-bg) 40%);
  background-image: url("../css/photos/360_F_669098686_UJg226TzjwExuOdoZ35TSXq8k79XRkup.jpg");
  background-size: cover;
  background-position: center;
}

/* ================================
   Layout global
   ================================ */

main {
  max-width: 1200px;
  margin: 24px auto 32px;
  padding: 0 16px;
  display: grid;
  gap: 20px;
}

/* ================================
   Topbar (header)
   ================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}
.hidden {
  display: none !important;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--agri-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  height: 40px;
  width: auto;
  margin-right: 4px;
}

.brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--agri-green);
}

.brand::after {
  content: " · Traçabilité agricole";
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--agri-muted);
}

/* Navigation */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 6px 14px;
  font-size: 0.9rem;
  background: transparent;
  color: var(--agri-text);
  transition: 0.15s ease-in-out;
}

.nav button:hover {
  background: var(--agri-green-soft);
  color: var(--agri-green);
}

.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--agri-muted);
}

#userInfo {
  max-width: 190px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Bouton logout */

#logoutBtn {
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid var(--agri-border);
  background: #ffffff;
  color: var(--agri-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.15s ease-in-out;
}

#logoutBtn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* ================================
   Cartes / sections
   ================================ */

.card {
  background: var(--agri-card);
  border-radius: var(--agri-radius-lg);
  box-shadow: var(--agri-shadow-soft);
  padding: 18px 18px 20px;
  display: block; /* Visible par défaut pour les pages individuelles */
  border: 3px solid #10b981;
  transition: all 0.2s ease;
}

/* Pour la SPA (index.html.erb), les sections sont cachées par défaut */
.card.section {
  display: none;
}

.card.section.active {
  display: block;
}

.card:hover {
  border-color: #059669;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}


/* ================================
   Cartes de parcelles individuelles
   ================================ */

.parcel-card {
  background: white;
  border: 3px solid #10b981;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.parcel-card:hover {
  border-color: #059669;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.parcel-card h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #059669;
}

.parcel-card p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: var(--agri-text);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

/* === STYLES POUR LA PAGE TÂCHES === */

/* Filtres de tâches */
.task-filters {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #10b981;
  color: #10b981;
}

.filter-btn.active {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

/* Grid des tâches */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Carte de tâche */
.task-card {
  background: white;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

/* Priorités */
.task-card.priority-low {
  border-left: 6px solid #10b981;
}

.task-card.priority-medium {
  border-left: 6px solid #f59e0b;
}

.task-card.priority-high {
  border-left: 6px solid #f97316;
}

.task-card.priority-urgent {
  border-left: 6px solid #dc2626;
}

/* Statuts */
.task-card.status-completed {
  opacity: 0.7;
  background: #f9fafb;
}

/* Header de la carte */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-icon {
  font-size: 24px;
}

.task-title h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.task-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-low {
  background: #d1fae5;
  color: #065f46;
}

.badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.badge-high {
  background: #fed7aa;
  color: #9a3412;
}

.badge-urgent {
  background: #fee2e2;
  color: #991b1b;
}

.badge-pending {
  background: #dbeafe;
  color: #1e40af;
}

.badge-in-progress {
  background: #e0e7ff;
  color: #4338ca;
}

.badge-completed {
  background: #d1fae5;
  color: #065f46;
}

/* Corps de la carte */
.task-body {
  margin-bottom: 16px;
}

.task-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.task-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  min-width: 120px;
}

.task-value {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.task-notes {
  margin-top: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.task-notes p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

/* Actions de la carte */
.task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.task-actions .btn {
  flex: 1;
  min-width: 100px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-actions .btn-primary {
  background: linear-gradient(135deg, #0a751f 0%, #12a832 100%);
  color: white;
}

.task-actions .btn-primary:hover {
  background: linear-gradient(135deg, #085419 0%, #0a751f 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 117, 31, 0.3);
}

.task-actions .btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
}

.task-actions .btn-success:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.task-actions .btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  border: 1px solid #d1d5db;
}

.task-actions .btn-secondary:hover {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-color: #9ca3af;
}

.task-actions .btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
}

.task-actions .btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }

  .task-filters {
    flex-wrap: wrap;
  }

  .filter-btn {
    flex: 1;
    min-width: 100px;
  }

  .task-actions .btn {
    min-width: auto;
  }
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.subsection {
  margin-top: 18px;
}

.subsection-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.subsection-header h3 {
  margin: 0;
  font-size: 1rem;
}

/* ================================
   Formulaires
   ================================ */

form {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--agri-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input,
textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--agri-radius-md);
  border: 1px solid var(--agri-border);
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--agri-green);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(27, 111, 58, 0.08);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* Boutons génériques */

button {
  font-size: 0.9rem;
  border-radius: var(--agri-radius-md);
  padding: 9px 15px;
  border: none;
  cursor: pointer;
  background: var(--agri-green);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, transform 0.05s ease,
    box-shadow 0.15s ease;
}

button:hover {
  background: #166232;
  box-shadow: 0 6px 18px rgba(22, 98, 50, 0.16);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button.success {
  background: #15803d;
}

button.success:hover {
  background: #166534;
}

button.warn {
  background: #b45309;
}

button.warn:hover {
  background: #92400e;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Champ fichier stylé */

.file input {
  display: none;
}

.file span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px dashed var(--agri-green);
  background: var(--agri-green-soft);
  color: var(--agri-green);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Preview image */

.preview {
  max-width: 220px;
  border-radius: var(--agri-radius-md);
  margin-top: 6px;
  border: 1px solid var(--agri-border);
}

/* Messages / erreurs */

.message {
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 10px;
  margin-top: 6px;
}

.message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.message.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Texte d’aide */

.hint {
  font-size: 0.8rem;
  color: var(--agri-muted);
}

/* ================================
   Grilles et listes
   ================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.stack {
  display: grid;
  gap: 10px;
}

/* Petites “cartes” dans les listes */

.grid .card,
.stack .card {
  box-shadow: none;
  border-radius: var(--agri-radius-md);
  border: 1px solid var(--agri-border);
  padding: 10px 12px;
}

/* ================================
   Mapbox
   ================================ */

.map {
  height: 600px !important; /* Hauteur augmentée pour mieux voir */
  min-height: 500px !important;
  border-radius: var(--agri-radius-lg);
  overflow: hidden;
  border: 1px solid var(--agri-border);
  margin-bottom: 12px;
  margin-left: -18px;  /* Compense le padding de .card */
  margin-right: -18px; /* Compense le padding de .card */
  width: calc(100% + 36px) !important; /* 100% + (18px * 2) pour compenser le padding */
  box-shadow: var(--agri-shadow-soft);
  position: relative !important;
}

/* Force Mapbox canvas à remplir le conteneur */
.map .mapboxgl-canvas-container {
  width: 100% !important;
  height: 100% !important;
}

.map .mapboxgl-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Amélioration des contrôles Mapbox */
.map .mapboxgl-ctrl-group {
  background: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.map .mapboxgl-ctrl-group button {
  width: 32px !important;
  height: 32px !important;
}

/* Style des popups */
.map .mapboxgl-popup-content {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  padding: 12px !important;
  font-family: system-ui, sans-serif !important;
}

.map .mapboxgl-popup-close-button {
  font-size: 20px !important;
  padding: 4px 8px !important;
  color: #666 !important;
}

.map .mapboxgl-popup-close-button:hover {
  background: #f0f0f0 !important;
  color: #000 !important;
}

/* ================================
   Badges (statuts tickets)
   ================================ */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fed7aa;
}

.badge.ok {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ================================
   Modal Support (dialog)
   ================================ */

dialog {
  width: min(760px, 95vw);
  border: none;
  border-radius: 18px;
  padding: 16px 18px 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

#modalClose {
  background: transparent;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  padding: 3px 8px;
}

#modalClose:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Infos ticket */

.ticket-meta {
  font-size: 0.8rem;
  color: var(--agri-muted);
  margin-bottom: 6px;
}

/* Thread de messages */

.thread {
  display: grid;
  gap: 8px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 10px;
}

.msg {
  padding: 8px 10px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.88rem;
}

.msg.me {
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.msg-header {
  font-size: 0.76rem;
  color: var(--agri-muted);
  margin-bottom: 2px;
}

/* Formulaire de réponse */

.reply-form {
  margin-top: 4px;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}

/* ================================
   Visibilité
   ================================ */

.hidden {
  display: none !important;
}

/* Cette classe sert à cacher le formulaire d’alertes aux farmers */
.hidden-if-farmer {
  display: none !important;
}

/* ================================
   Responsive
   ================================ */

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #supportForm.form-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Tablettes et petits écrans */
@media (max-width: 992px) {
  main {
    padding: 0 12px;
  }

  .card {
    padding: 16px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Mobile landscape et petites tablettes */
@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    justify-content: center;
    font-size: 1.1rem;
  }

  .brand::after {
    display: none;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .nav {
    order: 3;
    justify-content: center;
    gap: 4px;
  }

  .nav a,
  .nav button {
    padding: 8px 12px;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
    min-width: auto;
  }

  .userbox {
    justify-content: center;
    flex-wrap: wrap;
  }

  #userInfo {
    max-width: 100%;
    text-align: center;
  }

  main {
    margin-top: 16px;
    padding: 0 10px;
  }

  .card {
    padding: 14px;
    border-radius: 12px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-header h2 {
    font-size: 1.15rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .parcel-card {
    padding: 14px;
  }

  .parcel-card h4 {
    font-size: 1rem;
  }

  /* Boutons de parcelles en colonne */
  .parcel-card > div:last-child {
    flex-direction: column;
  }

  .parcel-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* Map responsive */
  .map {
    height: 400px !important;
    min-height: 300px !important;
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px) !important;
  }

  /* Dialog modal responsive */
  dialog {
    width: 95vw;
    max-width: none;
    padding: 14px;
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  /* Task cards */
  .task-header {
    flex-direction: column;
    gap: 10px;
  }

  .task-badges {
    flex-direction: row;
    align-items: flex-start;
  }

  .task-info {
    flex-direction: column;
    gap: 2px;
  }

  .task-label {
    min-width: auto;
  }

  .task-actions {
    flex-direction: column;
  }

  .task-actions .btn {
    width: 100%;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav a,
  .nav button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  #logoutBtn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  main {
    margin: 10px auto 20px;
    padding: 0 8px;
  }

  .card {
    padding: 12px;
    border-radius: 10px;
    border-width: 2px;
  }

  .card:hover {
    transform: none;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .hint {
    font-size: 0.75rem;
  }

  /* Formulaires */
  label {
    font-size: 0.8rem;
  }

  input,
  textarea,
  select {
    padding: 10px;
    font-size: 0.9rem;
  }

  button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* Map plus petit sur mobile */
  .map {
    height: 300px !important;
    min-height: 250px !important;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px) !important;
  }

  /* Parcel cards */
  .parcel-card {
    padding: 12px;
  }

  .parcel-card h4 {
    font-size: 0.95rem;
  }

  .parcel-card p {
    font-size: 0.85rem;
  }

  .parcel-card .btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Task cards */
  .task-card {
    padding: 12px;
  }

  .task-icon {
    font-size: 20px;
  }

  .task-title h4 {
    font-size: 1rem;
  }

  .badge {
    padding: 3px 8px;
    font-size: 11px;
  }

  /* Filters */
  .filter-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Login page specific */
  .login-logo {
    width: 80px;
  }

  #authTitle {
    font-size: 1.2rem;
    text-align: center;
  }

  /* Animation Lottie plus petite sur mobile */
  dotlottie-wc {
    width: 200px !important;
    height: 200px !important;
  }
}

/* Écrans très petits */
@media (max-width: 360px) {
  .topbar {
    padding: 8px 10px;
  }

  .brand-logo {
    height: 28px;
  }

  .nav a,
  .nav button {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  main {
    padding: 0 6px;
  }

  .card {
    padding: 10px;
  }

  .map {
    height: 250px !important;
    min-height: 200px !important;
  }

  dotlottie-wc {
    width: 150px !important;
    height: 150px !important;
  }
}

/* ================================
   Animations
   ================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   Logo Login
   ================================ */

.login-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(10, 117, 31, 0.1);
}

/* ================================
   Animation highlight pour champ de formulaire
   ================================ */

input.field-highlight {
  animation: fieldPulse 2s ease-in-out;
  box-shadow: 0 0 0 4px rgba(27, 111, 58, 0.3) !important;
  border-color: var(--agri-green) !important;
}

@keyframes fieldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 111, 58, 0.4);
    border-color: var(--agri-green);
  }
  25% {
    box-shadow: 0 0 0 6px rgba(27, 111, 58, 0.3);
    border-color: var(--agri-green);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(27, 111, 58, 0.2);
    border-color: var(--agri-green);
  }
  75% {
    box-shadow: 0 0 0 6px rgba(27, 111, 58, 0.3);
    border-color: var(--agri-green);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(27, 111, 58, 0.3);
    border-color: var(--agri-green);
  }
}
/* ================================
   Equipment Detail Styles
   ================================ */

.equipment-detail {
  padding: 1rem;
}

.equipment-detail h2 {
  margin: 0 0 1.5rem;
  color: var(--agri-green, #1b6f3a);
  border-bottom: 2px solid var(--agri-border, #e1e7f0);
  padding-bottom: 0.5rem;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--agri-text, #333);
}

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

.detail-item {
  padding: 0.75rem;
  background: var(--agri-bg, #f5f7fb);
  border-radius: 8px;
}

.alert-section {
  background: #fff3cd;
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
}

.alert-item {
  background: white;
  color: #856404;
  font-weight: 600;
}

.modal.large .modal-content {
  max-width: 900px;
}
