/* CityReport - Editar reporte */

.edit-report-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  background:
    radial-gradient(840px 280px at 8% -8%, rgba(14, 165, 233, .15), transparent 62%),
    radial-gradient(720px 260px at 96% 0%, rgba(245, 158, 11, .12), transparent 60%),
    rgba(255, 255, 255, .94);
  animation: editEnter .38s ease both;
}

.edit-report-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #154965, #0ea5e9, #f59e0b);
}

.edit-summary {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(14, 165, 233, .20);
  border-radius: 999px;
  background: rgba(14, 165, 233, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.edit-summary[style*="display:none"],
.edit-summary[style*="display: none"] {
  display: none !important;
}

.edit-summary strong {
  color: #154965;
  font-weight: 950;
}

.edit-form {
  animation: editFormEnter .42s ease both;
}

.edit-form .form-grid {
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, .90);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(248, 250, 252, .72)),
    radial-gradient(420px 140px at 10% 0%, rgba(14, 165, 233, .10), transparent 70%);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .07);
}

.edit-form .form-group {
  min-width: 0;
}

.edit-form label,
.edit-section-label {
  display: block;
  margin-bottom: 8px;
  color: #154965;
  font-size: .84rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.edit-form .form-control {
  min-height: 46px;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, .38);
  background-color: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.edit-form textarea.form-control {
  min-height: 132px;
}

.edit-form .form-control:focus {
  border-color: rgba(14, 165, 233, .65);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .13);
}

.status-select {
  font-weight: 950;
  border-width: 2px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.status-select.status-pendiente {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, .48);
  background:
    linear-gradient(180deg, rgba(254, 242, 242, .98), rgba(255, 255, 255, .94));
}

.status-select.status-en-proceso {
  color: #c2410c;
  border-color: rgba(245, 158, 11, .58);
  background:
    linear-gradient(180deg, rgba(255, 247, 237, .98), rgba(255, 255, 255, .94));
}

.status-select.status-resuelto {
  color: #15803d;
  border-color: rgba(34, 197, 94, .52);
  background:
    linear-gradient(180deg, rgba(240, 253, 244, .98), rgba(255, 255, 255, .94));
}

.edit-evidence-list {
  max-width: 560px;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, .95), rgba(255, 255, 255, .90));
  box-shadow: 0 14px 28px rgba(2, 6, 23, .07);
}

.edit-evidence-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.edit-evidence-list:hover .edit-evidence-img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.02);
}

.edit-evidence-empty,
.edit-evidence-error {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #64748b;
  font-weight: 900;
  text-align: center;
}

.edit-evidence-error {
  color: #b91c1c;
  background: rgba(254, 242, 242, .72);
}

.edit-actions {
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(226, 232, 240, .95);
  padding-top: 24px;
}

#btnDelete {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, .55);
  background: rgba(254, 242, 242, .70);
}

#btnDelete:hover {
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border-color: transparent;
}

@keyframes editEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes editFormEnter {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .edit-summary {
    width: 100%;
    justify-content: center;
  }

  .edit-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .edit-actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edit-report-panel,
  .edit-form,
  .edit-evidence-img {
    animation: none !important;
    transition: none !important;
  }
}
