Add here all your CSS customizations
/* flatpickr-theme-ecoresupply.css */
.flatpickr-calendar {
  font-family: Arial, sans-serif !important;
  background-color: #f1f1f1 !important;
  border-radius: 10px !important;
}

.flatpickr-day {
  color: #333 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
  background-color: #21b995 !important; /* Cor verde EcoResupply */
  color: #fff !important;
  border-color: #21b995 !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background-color: #ddd !important;
  color: #333 !important;
}

.flatpickr-current-month {
  color: #21b995 !important; /* Cor do mês atual */
}

.flatpickr-next-month,
.flatpickr-prev-month {
  color: #21b995 !important;
}

.select2-container--default .select2-selection--single {
  background-color: #fff; /* <-- Agora fundo branco */
  border: 1px solid #e0e6ed;
  border-radius: 0.5rem;
  height: 2.8125rem; /* igual aos inputs */
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
  font-family: "Open Sans", sans-serif;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #6c757d;
  line-height: 1.4rem;
  font-weight: 400;
  font-size: 0.9375rem;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 2.8125rem;
  top: 0.35rem;
  right: 0.75rem;
}

.select2-container--default .select2-dropdown {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  font-family: "Open Sans", sans-serif;
}

.select2-results__option {
  font-size: 0.9375rem;
  padding: 0.45rem 1rem;
}

.select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #21b995 !important; /* Verde EcoResupply */
  color: #fff !important;
}

.select2-results__option--selected {
  background-color: #e5faf3 !important; /* Verde muito claro */
  color: #21b995 !important;
}

.select2-search--dropdown .select2-search__field {
  border-radius: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  font-family: "Open Sans", sans-serif;
}

.btn-eco {
  background: #21b995;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.bg-eco-light {
  background: #fcfcfc !important;
}
.text-eco {
  color: #21b995 !important;
}

.eco-section-title {
  color: #21b995;
  font-weight: 700;
}
.eco-label {
  color: #2a3c22;
  font-weight: 500;
}
.eco-btn {
  background: #21b995;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 10px 36px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.eco-btn:hover {
  background: #189578;
  color: #fff !important;
}
.accordion-button {
  background: #fff !important;
  color: #252a2c;
  font-weight: 600;
}
.accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
}
.accordion-body {
  background: #f7f7f7 !important;
  border-radius: 0 0 8px 8px;
}
.form-control:focus {
  border-color: #21b995;
  box-shadow: 0 0 0 0.2rem #21b99522;
}
.list-unstyled .fa-comment {
  color: #21b995;
}

.input-custom,
.form-control,
.form-select {
  border: 1.5px solid #21b99533 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: border-color 0.15s;
}
.input-custom:focus,
.form-control:focus,
.form-select:focus {
  border-color: #21b995 !important;
  box-shadow: 0 0 0 1.5px #21b99544;
}

.custom-hover-card {
  transition: box-shadow 0.3s, transform 0.3s;
}
.custom-hover-card:hover {
  box-shadow: 0 0 32px 0 #21b99533, 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px) scale(1.02);
  border-color: #21b995 !important;
}
.object-fit-cover {
  object-fit: cover;
}
.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.product-card .card-body {
  min-height: 220px; /* Ajusta conforme necessário */
  display: flex;
  flex-direction: column;
}

.product-card .card-text {
  flex-grow: 1;
}

.badge-moderation {
  background: #ffc107 !important;
  color: #222 !important;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.25em 1em;
  box-shadow: 0 1px 4px #8882;
  white-space: nowrap;
  opacity: 0.97;
}
.badge-approve {
  background: #21b995 !important;
  color: #fff !important;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.25em 1em;
  box-shadow: 0 1px 4px #8882;
  white-space: nowrap;
  opacity: 0.97;
}
.badge-rejected {
  background: #dc3545 !important;
  color: #fff !important;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.25em 1em;
  box-shadow: 0 1px 4px #8882;
  white-space: nowrap;
  opacity: 0.97;
}

.campo-obrigatorio input,
.campo-obrigatorio select,
.campo-obrigatorio textarea {
  border: 2px solid #21b995 !important;
  box-shadow: 0 0 8px #21b99540;
  background: #e8f9f5 !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campo-obrigatorio input:focus,
.campo-obrigatorio select:focus,
.campo-obrigatorio textarea:focus {
  border: 2px solid #189578 !important;
  box-shadow: 0 0 10px #18957844;
  background: #e0f7f3 !important;
}

.eco-spin {
  animation: eco-spin-anim 1.2s linear infinite;
  filter: drop-shadow(0 0 12px #21b99599);
}

.btn .fa,
.btn .fas,
.btn .far,
.btn .fab {
  vertical-align: middle;
}
.btn .ms-1 {
  margin-left: 0.35rem !important;
}

@keyframes eco-spin-anim {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (prefers-color-scheme: dark) {
  #global-spinner {
    background: rgba(20, 32, 20, 0.96) !important;
  }
}

/* ------------------------- */
/* BOOTSTRAP BUTTON OVERRIDES ECORESUPPLY */
/* ------------------------- */

.btn-primary,
.btn-success,
.bg-success,
.bg-primary {
  background-color: #21b995 !important;
  border-color: #21b995 !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover,
.bg-success:hover,
.bg-primary:hover,
.btn-primary:focus,
.btn-success:focus,
.bg-success:focus,
.bg-primary:focus {
  background-color: #189578 !important;
  border-color: #189578 !important;
  color: #fff !important;
}

.btn-primary:active,
.btn-success:active,
.bg-success:active,
.bg-primary:active {
  background-color: #158c70 !important;
  border-color: #158c70 !important;
  color: #fff !important;
}

.btn-outline-primary,
.btn-outline-success {
  color: #21b995 !important;
  border-color: #21b995 !important;
  background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-primary:focus,
.btn-outline-success:focus {
  background: #21b995 !important;
  color: #fff !important;
  border-color: #21b995 !important;
}

.btn-outline-primary:active,
.btn-outline-success:active {
  background: #158c70 !important;
  color: #fff !important;
  border-color: #158c70 !important;
}

.btn-secondary,
.bg-secondary {
  background-color: #0f2e50 !important;
  border-color: #0f2e50 !important;
  color: #fff !important;
}

.btn-secondary:hover,
.bg-secondary:hover,
.btn-secondary:focus,
.bg-secondary:focus {
  background-color: #163b68 !important;
  border-color: #163b68 !important;
  color: #fff !important;
}

.btn-secondary:active,
.bg-secondary:active {
  background-color: #0d2238 !important;
  border-color: #0d2238 !important;
  color: #fff !important;
}

.btn-outline-secondary {
  color: #0f2e50 !important;
  border-color: #0f2e50 !important;
  background: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #0f2e50 !important;
  color: #fff !important;
  border-color: #0f2e50 !important;
}

.btn-outline-secondary:active {
  background: #0d2238 !important;
  color: #fff !important;
  border-color: #0d2238 !important;
}

/* Texto */
.text-primary,
.text-success {
  color: #21b995 !important;
}
.text-secondary {
  color: #0f2e50 !important;
}

/* Badges */
.badge-primary,
.badge-success {
  background: #21b995 !important;
  color: #fff !important;
}
.badge-secondary {
  background: #0f2e50 !important;
  color: #fff !important;
}

/* Alerts */
.alert-success,
.alert-primary {
  background: #e5faf3 !important;
  color: #189578 !important;
  border-color: #21b995 !important;
}
.alert-secondary {
  background: #e7eef6 !important;
  color: #0f2e50 !important;
  border-color: #0f2e50 !important;
}

/* Focus shadow */
.btn:focus,
.btn-primary:focus,
.btn-success:focus,
.btn-secondary:focus {
  box-shadow: 0 0 0 0.18rem #21b99544 !important;
}

/* Disabled */
.btn-primary:disabled,
.btn-success:disabled,
.btn-secondary:disabled {
  background: #8be2c7 !important;
  border-color: #8be2c7 !important;
  color: #e9ecef !important;
}

.btn-outline-primary:disabled,
.btn-outline-success:disabled,
.btn-outline-secondary:disabled {
  color: #b9bfc9 !important;
  border-color: #b9bfc9 !important;
  background: #f5f6fa !important;
}

/* ------------------------- */
/* FIM BOOTSTRAP OVERRIDES   */
/* ------------------------- */

.faq-accordion-soft .card {
  border: none;
  border-radius: 1rem;
  background: #f9fafb;
  box-shadow: 0 2px 10px #009e3622;
  margin-bottom: 1rem;
  transition: box-shadow 0.18s cubic-bezier(0.4, 0.2, 0.2, 1), background 0.2s;
}

.faq-accordion-soft .card-header {
  background: transparent;
  border: none;
  border-radius: 1rem 1rem 0 0;
  padding: 1.1rem 1.5rem;
  font-weight: 500;
  color: #145c38;
  font-size: 1.13rem;
}

.faq-accordion-soft .card-body {
  background: transparent;
  color: #333;
  font-size: 1rem;
  padding: 1.3rem 1.5rem 1.3rem 1.5rem !important;
}

.faq-accordion-soft .collapse.show,
.faq-accordion-soft .collapsing {
  background: #f2fbf7;
}

.faq-accordion-soft .card + .card {
  margin-top: 0.5rem;
}

.faq-accordion-soft .accordion-button,
.faq-accordion-soft .accordion-button:not(.collapsed),
.faq-accordion-soft .accordion-button:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: #f9fafb !important; /* Mantém fundo igual */
  color: #145c38; /* Mantém texto igual */
}

.map-wrapper {
  position: relative;
  border-radius: 1.6rem;
  box-shadow: 0 8px 32px rgba(30, 48, 46, 0.09), 0 2px 8px 0 #38d39f10;
  border: 1.5px solid #e7ecec;
  background: #f6f8f7;
  overflow: hidden;
  min-height: 340px;
  max-width: 100%;
}
#complaint-map {
  width: 100%;
  height: 340px;
  border-radius: 1.6rem;
  min-height: 340px;
}
/* Leaflet attribution pequeno e transparente */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.93) !important;
  border-radius: 0 0.8rem 0 0;
  font-size: 0.9rem;
  color: #96a1a3;
  box-shadow: none !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
  opacity: 0.8;
}
.leaflet-control-attribution a {
  color: #42b983 !important;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.78;
}
.leaflet-control-attribution a:hover {
  color: #18976d !important;
}

.eco-img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.eco-img-slot {
  width: 116px;
  height: 86px;
  border: 2px dashed #bde5cf;
  border-radius: 12px;
  background: #fcfff6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s;
  overflow: hidden;
}
.eco-img-slot.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.eco-img-slot.main {
  border: 2.5px solid #38d39f;
  box-shadow: 0 0 0 2px #d7f9ee;
}
.eco-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #38d39f;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  height: 100%;
  width: 100%;
  justify-content: center;
}
.eco-remove-img,
.eco-make-main {
  position: absolute;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  top: 5px;
  right: 5px;
  color: #888;
  font-size: 1.08em;
  z-index: 2;
  box-shadow: 0 2px 8px #0002;
  transition: color 0.2s;
}
.eco-make-main {
  left: 5px;
  right: auto;
  color: #38d39f;
  background: #fff;
}
.eco-remove-img:hover {
  color: #d33;
  background: #ffeaea;
}
.eco-make-main.active,
.eco-make-main:hover {
  color: #25906d;
}

/* ------------------------- */
/* MIDAL CAT               */
/* ------------------------- */

/* ======================== */
/*      SELECT2 STYLES      */
/* ======================== */
.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 0.5rem;
  height: 2.8125rem;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
  color: #6c757d;
  display: flex;
  align-items: center;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #6c757d;
  line-height: 1.4rem;
  font-weight: 400;
  font-size: 0.9375rem;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 2.8125rem;
  top: 0.35rem;
  right: 0.75rem;
}
.select2-container--default .select2-dropdown {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}
.select2-results__option {
  font: inherit !important;
  color: inherit !important;
}
.select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #21b995 !important;
  color: #fff !important;
}
.select2-results__option--selected {
  background-color: #e5faf3 !important;
  color: #21b995 !important;
}
.select2-search--dropdown .select2-search__field {
  border-radius: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
}

.eco-highlight {
  background: #e8faef;
  color: #22937a;
  border-radius: 0.3em;
  padding: 0 0.13em;
}

/* ======================== */
/*       IMAGE GRID         */
/* ======================== */
#imageGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}
#imageGrid > div {
  flex: 1 0 30%;
  max-width: 32%;
  min-width: 90px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
@media (min-width: 600px) {
  #imageGrid > div {
    flex: 0 0 96px;
    max-width: 96px;
    min-width: 92px;
  }
}
@media (max-width: 450px) {
  #imageGrid > div {
    flex: 1 0 45%;
    max-width: 48%;
  }
}
.image-preview-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.image-preview-wrap .btn {
  z-index: 2;
}
.image-preview-wrap .badge {
  font-size: 0.81rem;
  padding: 0.25em 0.9em;
  border-radius: 9px;
  opacity: 0.92;
}
#imageGrid label {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
}

/* ======================== */
/*    BOTÃO DE CATEGORIA    */
/* ======================== */
#openCategoryModalBtn {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  font-size: 1rem;
}
#openCategoryModalBtn span {
  font-size: 1rem;
  white-space: normal;
  word-break: break-word;
}

/* ======================== */
/*     MODAL CATEGORIA      */
/* ======================== */
.modal-category-custom .modal-content {
  border-radius: 1.5rem !important;
  box-shadow: 0 4px 48px 0 rgba(34, 197, 94, 0.12);
}
.category-step .category-btn {
  background: #f5faf7;
  border: 2px solid #b0e1c5;
  color: #184e36;
  transition: 0.1s;
  padding: 1.1rem 0.5rem;
  border-radius: 1.1rem;
  width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.category-step .category-btn span {
  flex: 1 1 0;
  min-width: 0;
}
.category-step .category-btn:hover,
.category-step .category-btn:focus {
  background: #e2f7e7;
  border-color: #1cd16e;
  color: #125c3b;
}
.btn-subcat {
  border-color: #b0e1c5;
  color: #1b714b;
  background: #fff;
  border-radius: 20px;
  padding: 0.4rem 1.1rem;
  font-size: 1rem;
  white-space: normal;
  word-break: break-word;
}
.btn-subcat:hover,
.btn-subcat:focus {
  background: #e2f7e7;
  border-color: #1cd16e;
  color: #125c3b;
}
.modal-header.bg-success {
  background: #1cd16e !important;
  color: #fff;
}
.modal-header .fa,
.modal-header .modal-title {
  color: #fff;
}

/* ======================== */
/*       FORM/INPUTS        */
/* ======================== */
.input-custom,
.form-control,
.form-select {
  border: 1.5px solid #21b99533 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: border-color 0.15s;
}
.input-custom:focus,
.form-control:focus,
.form-select:focus {
  border-color: #21b995 !important;
  box-shadow: 0 0 0 1.5px #21b99544;
}
.form-label.fw-semibold {
  color: #206548;
}
.form-text.text-muted {
  font-size: 0.96rem;
}

/* ======================== */
/*         BUTTONS          */
/* ======================== */
.btn-success,
.btn-primary {
  background-color: #21b995 !important;
  border-color: #21b995 !important;
  color: #fff !important;
  font-weight: 600;
}
.btn-success:hover,
.btn-primary:hover {
  background-color: #189578 !important;
  border-color: #189578 !important;
  color: #fff !important;
}
.btn-outline-success {
  color: #21b995 !important;
  border-color: #21b995 !important;
  background: transparent !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
  background: #21b995 !important;
  color: #fff !important;
  border-color: #21b995 !important;
}

/* ======================== */
/*      ALERTS/BADGES       */
/* ======================== */
.badge-primary,
.badge-success {
  background: #21b995 !important;
  color: #fff !important;
}
.alert-success,
.alert-primary {
  background: #e5faf3 !important;
  color: #189578 !important;
  border-color: #21b995 !important;
}

/* ======================== */
/*     MAP/LEAFLET          */
/* ======================== */
.map-wrapper {
  position: relative;
  border-radius: 1.6rem;
  box-shadow: 0 8px 32px rgba(30, 48, 46, 0.09), 0 2px 8px 0 #38d39f10;
  border: 1.5px solid #e7ecec;
  background: #f6f8f7;
  overflow: hidden;
  min-height: 340px;
  max-width: 100%;
}
#product-map {
  width: 100%;
  height: 320px;
  border-radius: 1.6rem;
  min-height: 320px;
}
/* Leaflet attribution pequeno e transparente */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.93) !important;
  border-radius: 0 0.8rem 0 0;
  font-size: 0.9rem;
  color: #96a1a3;
  box-shadow: none !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
  opacity: 0.8;
}
.leaflet-control-attribution a {
  color: #42b983 !important;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.78;
}
.leaflet-control-attribution a:hover {
  color: #18976d !important;
}

/* ======================== */
/*       MOBILE OPT         */
/* ======================== */
@media (max-width: 600px) {
  #imageGrid > div {
    flex: 1 0 30%;
    max-width: 32%;
  }
  #imageGrid {
    gap: 0.4rem;
  }
  #openCategoryModalBtn,
  #openCategoryModalBtn span {
    font-size: 0.95rem;
  }
  .modal-category-custom .modal-dialog {
    max-width: 98vw;
    margin: 0 auto;
  }
  .modal-category-custom .modal-content {
    border-radius: 1rem !important;
    padding: 0.2rem;
  }
  .modal-category-custom .modal-body {
    padding: 0.6rem 0.4rem 0.4rem 0.4rem;
    overflow-y: auto;
    max-height: 82vh;
  }
  .category-step .category-btn,
  .btn-subcat {
    font-size: 0.96rem;
    padding: 0.5rem 0.3rem;
    border-radius: 0.8rem;
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 450px) {
  #imageGrid > div {
    flex: 1 0 45%;
    max-width: 48%;
  }
}

/* ======================== */
/*  FLATPICKR CALENDAR CSS  */
/* ======================== */
.flatpickr-calendar {
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
  border-radius: 10px;
}
.flatpickr-day {
  color: #333;
}
.flatpickr-day.selected {
  background-color: #21b995; /* Cor verde EcoResupply */
  color: white;
}
.flatpickr-day:hover {
  background-color: #ddd;
}
.flatpickr-current-month {
  color: #21b995;
}
.flatpickr-next-month,
.flatpickr-prev-month {
  color: #21b995;
}

/* Exemplos de estilos para grid */
.eco-img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.eco-img-slot {
  width: 116px;
  height: 86px;
  border: 2px dashed #bde5cf;
  border-radius: 12px;
  background: #fcfff6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s;
  overflow: hidden;
}
.eco-img-slot.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.eco-img-slot.main {
  border: 2.5px solid #38d39f;
  box-shadow: 0 0 0 2px #d7f9ee;
}
.eco-remove-img {
  position: absolute;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  top: 5px;
  right: 5px;
  color: #d33;
  font-size: 1.08em;
  z-index: 2;
  box-shadow: 0 2px 8px #0002;
  transition: color 0.2s;
}
.eco-remove-img:hover {
  background: #ffeaea;
}

/* MOBILE FIRST: 1 coluna, botões grandes, modal com cantos arredondados */
/* #categoryModal .modal-content { border-radius: 1.4rem; }
#categoryModal .modal-header { border-radius: 1.4rem 1.4rem 0 0; }
#categoryModal .modal-footer { border-radius: 0 0 1.4rem 1.4rem; }
#categoryModal .cat-select-btn {
    min-height: 64px;
    font-size: 1.09rem;
    border-radius: 12px;
    transition: box-shadow .13s;
}
#categoryModal .cat-select-btn img { width: 32px; height: 32px; }
#categoryModal .cat-select-btn:active,
#categoryModal .cat-select-btn:focus { box-shadow: 0 0 0 3px #d0ffe7; }

@media (min-width: 576px) {
    #categoryModal .row-cols-sm-2 > .col { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
    #categoryModal .row-cols-md-3 > .col { flex: 0 0 33.3333%; max-width: 33.3333%; }
    #categoryModal .cat-select-btn { min-height: 74px; font-size: 1.16rem; }
    #categoryModal .cat-select-btn img { width: 38px; height: 38px; }
}
@media (min-width: 1200px) {
    #categoryModal .modal-dialog { max-width: 980px; }
    #categoryModal .row-cols-lg-4 > .col { flex: 0 0 25%; max-width: 25%; }
    #categoryModal .cat-select-btn { min-height: 88px; font-size: 1.21rem; }
    #categoryModal .cat-select-btn img { width: 46px; height: 46px; }
}
@media (min-width: 1500px) {
    #categoryModal .modal-dialog { max-width: 1280px; }
    #categoryModal .row-cols-xl-5 > .col { flex: 0 0 20%; max-width: 20%; }
} */

/* MOBILE FIRST (até 480px) */
.img-thumb-wrap {
  position: relative;
  display: inline-block;
  margin: 5px;
  touch-action: pan-y !important; /* Ajuda a Sortable funcionar no mobile */
  background: #fff;
  min-width: 88px;
  min-height: 66px;
  vertical-align: top;
  overflow: visible;
}

.img-thumb-wrap img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 9px;
  border: 2px solid #b7ffca;
  box-shadow: 0 2px 8px #eef7ee;
  background: #fafafa;
  transition: border 0.14s, box-shadow 0.12s;
}

/* Botão de remoção ajustado */
.img-thumb-wrap .btn-remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 9;
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.25rem;
  line-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px #ef9a9a;
  opacity: 0.96;
  transition: background 0.17s, opacity 0.15s;
  cursor: pointer;
}

.img-thumb-wrap .btn-remove-img:active,
.img-thumb-wrap .btn-remove-img:focus {
  background: #d32f2f;
  opacity: 1;
}

.badge-principal {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 9;
  background: #23bf63;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: 0 1px 4px #8fd6b4;
  pointer-events: none;
}

/* Ajustes para tela maior que 480px */
@media (min-width: 480px) {
  .img-thumb-wrap,
  .img-thumb-wrap img {
    min-width: 96px;
    min-height: 72px;
    width: 96px;
    height: 72px;
  }
  .img-thumb-wrap .btn-remove-img {
    width: 30px;
    height: 30px;
    font-size: 1.38rem;
  }
}

/* Ajustes para tablet (min-width: 768px) */
@media (min-width: 768px) {
  .img-thumb-wrap,
  .img-thumb-wrap img {
    min-width: 112px;
    min-height: 84px;
    width: 112px;
    height: 84px;
  }
  .img-thumb-wrap .btn-remove-img {
    width: 34px;
    height: 34px;
    font-size: 1.55rem;
  }
  .badge-principal {
    font-size: 1.03rem;
  }
}

/* DROPZONE */

/* Dropzone container responsivo */
#dropzone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
}

/* Estilo dos previews */
.dz-preview {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 240px;
}

/* Imagem */
.dz-image img {
  width: 100%;
  max-width: 240px;
  border-radius: 6px;
  object-fit: cover;
}

/* Botão de remoção estilizado */
.dz-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #dc3545;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

/* Desktop: transforma em grade horizontal */
@media (min-width: 768px) {
  #dropzone {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dz-preview {
    width: 200px;
    margin: 6px;
  }
}

/* Ajustes para telas maiores (desktop) */
@media (min-width: 1200px) {
  .img-thumb-wrap,
  .img-thumb-wrap img {
    min-width: 124px;
    min-height: 93px;
    width: 124px;
    height: 93px;
  }
  .img-thumb-wrap .btn-remove-img {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }
}

/* Garante alinhamento vertical em mobile */
.dz-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 400px) {
  .notyf__toast {
    min-width: 90vw !important;
    font-size: 1rem;
    padding: 1rem !important;
  }
}

@media (max-width: 991.98px) {
  #mainNav .dropdown-menu.show {
    display: block !important;
  }
}

@media (max-width: 991.98px) {
  .dropdown-mega-content {
    padding: 1rem !important;
    overflow-y: auto;
    max-height: 400px;
  }
  .dropdown-menu.show {
    display: block !important;
  }
}

/* ----------- CARD ----------- */

/* ----------- CARD PRINCIPAL ----------- */

.eco-card-new {
  background: #fff;
  box-shadow: 0 4px 28px #2da56c11, 0 2px 9px #1cc46c16;
  border-radius: 18px;
  overflow: hidden;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 12px;
}

.eco-card-imgbox {
  width: 100%;
  height: 215px;
  background: linear-gradient(135deg, #eafaf2 60%, #fafcf8 100%);
  border-bottom: 1px solid #e6ece7;
  position: relative;
  overflow: hidden;
}

.eco-card-img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
  background: #f8faf8;
  box-shadow: 0 2px 7px #18b36d11;
}

/* BADGES – alinhados topo esquerda/direita */
.eco-img-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}
.eco-card-chip {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}
.eco-img-badge,
.eco-card-chip {
  display: inline-block;
  background: #fff;
  color: #18b36d;
  font-weight: 600;
  font-size: 1em;
  padding: 3px 14px;
  border-radius: 22px;
  box-shadow: 0 1.5px 5px #19b36d21;
  border: 1.5px solid #d2eee1;
  opacity: 0.97;
  min-width: 1.5em;
  min-height: 1.9em;
  line-height: 1.2em;
  margin: 0;
  vertical-align: middle;
}

.eco-img-count {
  position: absolute;
  bottom: 9px;
  right: 14px;
  background: #e2faee;
  color: #18b36d;
  border-radius: 12px;
  font-size: 0.99em;
  padding: 2.5px 10px;
  font-weight: 700;
  z-index: 11;
  box-shadow: 0 1.5px 7px #1cb36d13;
}

@media (max-width: 576px) {
  .eco-card-imgbox,
  .eco-card-img {
    height: 44vw !important;
    min-height: 108px !important;
    max-height: 210px !important;
  }
  .eco-img-badge,
  .eco-card-chip {
    font-size: 0.91em;
    padding: 2px 10px;
    min-height: 1.5em;
    top: 9px !important;
  }
  .eco-img-badge {
    left: 10px !important;
  }
  .eco-card-chip {
    right: 10px !important;
  }
}

/* BODY E TITULOS */
.eco-card-body-new {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 112px;
  position: relative;
  background: #fff;
}

.eco-card-title {
  font-size: 1.19em;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
}

.eco-card-meta {
  font-size: 1em;
  color: #82918f;
}

.eco-card-desc {
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 2em;
  max-height: none;
  line-height: 1.43em;
  position: relative;
  font-size: 0.98em;
}

/* BADGE DE VALOR/ESTADO */
.eco-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.97em;
  font-weight: 600;
}
.eco-chip-main {
  background: #18b36d;
  color: #fff;
}
.eco-chip-doacao {
  background: #e2faee;
  color: #18b36d;
  border: 1.5px solid #21d287;
}
.eco-chip-simbolic {
  background: #fff9e3;
  color: #a8791c;
  border: 1.5px solid #ffe8a1;
}
.eco-chip-acordar {
  background: #ffe6e6;
  color: #d52929;
  border: 1.5px solid #fdafaf;
}
.eco-chip-default {
  background: #eff1f4;
  color: #728a7e;
  border: 1.5px solid #e7f6f3;
}

/* ----------- FOOTER: BOTÕES ICONES ----------- */
.eco-card-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  background: #fff;
  border-top: 1px solid #eff1f4;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 0 8px 8px;
}

.eco-feedback-btn {
  background: #fff;
  border: 1.5px solid #e3efe5;
  color: #22c284;
  border-radius: 999px;
  font-size: 1.32em;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 9px #19b36d11;
  transition: color 0.17s, box-shadow 0.16s;
  opacity: 0.97;
}
.eco-feedback-btn:hover,
.eco-feedback-btn.active {
  background: #e2faee;
  color: #0d8043;
  border-color: #18b36d;
  box-shadow: 0 4px 18px #1dbb6440;
}
.eco-feedback-btn.eco-dislike {
  color: #d52929;
  border-color: #ffdede;
}
.eco-feedback-btn.eco-dislike:hover {
  color: #fff;
  background: #ffdede;
}
.eco-feedback-btn.eco-report {
  color: #d57c10;
  border-color: #ffeec6;
}
.eco-feedback-btn.eco-report:hover {
  color: #fff;
  background: #ffeec6;
}

/* ----------- OVERLAY "VER DETALHES" ----------- */
.eco-card-cta-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 42px;
  background: linear-gradient(0deg, #f6f8f7f7 95%, transparent 100%);
  text-align: center;
  color: #16b36d;
  font-weight: 700;
  font-size: 1.09em;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.16s;
  z-index: 13;
  width: 100%;
  border-radius: 0 0 14px 14px;
  cursor: pointer;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-card-new:hover .eco-card-cta-overlay,
.eco-card-new:focus-within .eco-card-cta-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .eco-card-cta-overlay {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    opacity: 1 !important;
    pointer-events: auto;
    margin-top: 0.25rem;
    z-index: 20 !important;
    background: #f6f8f7;
    height: 70px;
    border-radius: 0 0 14px 14px;
    font-size: 1em;
  }
  .eco-card-footer {
    position: relative;
    z-index: 21;
  }
}

/* ----------- CAROUSEL/MODAL ----------- */
.eco-carousel-btn {
  background: #111 !important;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.92;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.eco-carousel-btn:active,
.eco-carousel-btn:focus {
  outline: none;
  background: #222 !important;
}
.eco-carousel-btn-icon svg {
  display: block;
  margin: 0 auto;
}
.carousel-control-prev.eco-carousel-btn {
  left: 12px;
}
.carousel-control-next.eco-carousel-btn {
  right: 12px;
}

.eco-card-meta-info {
  font-size: 0.98em;
  color: #194d34;
  font-weight: 400;
  margin-top: 2px;
  margin-bottom: 0.7em;
  line-height: 1.4;
  background: none;
  border: none;
  padding: 0;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px; /* linhas e colunas */
}

.eco-card-meta-info .eco-meta-block {
  display: flex;
  gap: 5px;
  align-items: baseline;
  margin-bottom: 2px;
}

.eco-card-meta-info .meta-label {
  color: #169e62;
  font-weight: 600;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.98em;
}

.eco-card-meta-info .eco-meta-value {
  font-weight: 500;
  color: #194d34;
  background: none;
  margin-right: 0;
  font-size: 0.98em;
}

/* Botão fechar modal exclusivo ECO */
.eco-modal-close-btn {
  z-index: 1100 !important;
  background: #fff !important;
  border-radius: 50%;
  opacity: 0.97;
  box-shadow: 0 2px 12px #1112;
  border: 2px solid #fff;
  width: 38px;
  height: 38px;
  position: absolute;
  top: 18px;
  right: 18px;
  transition: box-shadow 0.2s;
}
.eco-modal-close-btn:hover {
  box-shadow: 0 4px 18px #1113;
}

@media (max-width: 500px) {
  .eco-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95em;
  }
  .carousel-control-prev.eco-carousel-btn {
    left: 2px;
  }
  .carousel-control-next.eco-carousel-btn {
    right: 2px;
  }
  .modal .btn-close {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }
}

.eco-notification-link {
  position: relative;
  display: flex;
  align-items: center;
}
.eco-notification-badge {
  position: absolute;
  left: 22px;
  top: -8px;
  padding: 2px 7px;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .eco-notification-text {
    display: none !important;
  }
  .eco-notification-link .fa-bell {
    font-size: 1.6em;
  }
  .eco-notification-badge {
    left: 22px;
    top: -8px;
    font-size: 0.82em;
  }
}

@media (max-width: 991.98px) {
  .eco-notification-link {
    padding-right: 0;
  }
}

/* === SIDEBAR: SEARCH === */
.sidebar .search-form .input-group {
  align-items: stretch;
}
.sidebar .search-form .form-control {
  height: 44px;
  border-radius: 9999px 0 0 9999px; /* pill left */
  border-right: 0;
}
.sidebar .search-form .btn {
  height: 44px;
  border-radius: 0 9999px 9999px 0;   /* pill right */
}

/* === SIDEBAR: WIDGET BOX SPACING === */
.sidebar .widget {
  margin-bottom: 1.25rem;
}
.sidebar .widget-title {
  margin-bottom: .75rem;
}

/* === POPULARES: LIMPAR MARCADOR "•" E ALINHAR === */
.sidebar .simple-post-list {
  margin: 0;
  padding: 0;
}
.sidebar .simple-post-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  position: relative;
}
.sidebar .simple-post-list li::before { /* remove o bullet do tema */
  content: none !important;
}
.sidebar .simple-post-list .post-image {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}
.sidebar .simple-post-list .post-image img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: .5rem;
}
.sidebar .simple-post-list .post-info {
  min-width: 0; /* permite truncar */
}
.sidebar .simple-post-list .post-info a {
  display: block;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar .simple-post-list .post-info .post-meta {
  font-size: .8rem;
  color: #6c757d;
}

/* === TAGS: melhor wrap === */
.sidebar .widget .badge {
  line-height: 1;
  margin-bottom: .4rem;
}

.search-box {
  max-width: 100%;
}
.search-box .form-control {
  border-radius: 50px;
  padding-left: 2.5rem; /* espaço para o ícone */
}
.search-box i {
  pointer-events: none; /* não interfere ao clicar */
  color: #6c757d;
}

/* ========= ECORESUPPLY THEME TOKENS ========= */
:root{
  --eco-brand: #21b995;        /* primária */
  --eco-brand-600: #189578;    /* hover */
  --eco-secondary: #0f2e50;    /* azul escuro */
  --eco-ink: #252a2c;          /* texto principal */
  --eco-ink-weak: #6c757d;     /* texto secundário */
  --eco-line: #e0e6ed;         /* linhas/bordas */
  --eco-node: #f1fffa;         /* fundo de nós (claro e com “tint” verde) */
  --eco-node-2: #e5faf3;       /* alt */
  --eco-bg: #ffffff;
}

/* ========= MERMAID ========= */
.markdown-content .mermaid{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding:.25rem 0;
}
.mermaid svg{ max-width:100%; height:auto }

/* nós, clusters e arestas com “look” EcoResupply */
.mermaid .node rect,
.mermaid .node polygon,
.mermaid .node path{
  rx:10; ry:10; stroke-width:1.5;
  stroke: var(--eco-brand);
  fill: var(--eco-node);
  filter: drop-shadow(0 1px 0 rgba(20,50,40,.04))
          drop-shadow(0 6px 22px rgba(20,50,40,.08));
}
.mermaid .cluster rect{
  rx:14; ry:14; stroke: var(--eco-line); fill:#fff;
}
.mermaid .edgePath path{ stroke-width:1.6; stroke: var(--eco-brand); }
.mermaid .arrowheadPath{ fill: var(--eco-brand); }
.mermaid .label,.mermaid .edgeLabel{ font-family: "Open Sans", system-ui, sans-serif; fill: var(--eco-ink); }

/* Sequence */
.mermaid .sequence .actor rect{ rx:10; ry:10; fill: var(--eco-node); stroke: var(--eco-brand); }
.mermaid .sequence .messageLine0{ stroke-dasharray:0; stroke: var(--eco-brand); }

/* Pie */
.mermaid .pieSection path{ stroke:#fff; stroke-width:2 }
.mermaid .legend text{ fill: var(--eco-ink); font-size:.92rem }

/* ========= KaTeX ========= */
.katex-inline{ color: var(--eco-ink); }
.katex-block{
  padding:.5rem .75rem;
  border-left:4px solid var(--eco-brand);
  background: var(--eco-node);
  border-radius:10px;
  overflow-x:auto;
}

/* --- NAV MOBILE FIXES --- */
@media (max-width: 991.98px) {
  /* Fica por cima de tudo do header */
  #header .header-nav-main { z-index: 1050; }

  /* Mais área útil para scroll (sem cortar mega-menus) */
  #header .header-nav-main nav {
    max-height: calc(100dvh - 140px); /* ajusta 140px se o header for maior/menor */
    overscroll-behavior: contain;
  }

  /* Garante que os submenus aparecem quando o JS marca .opened */
  #header .header-nav-main nav > ul li.opened > .dropdown-menu {
    display: block !important;
  }

  /* Evita posicionamentos “flutuantes” no mobile */
  #header .header-nav-main .dropdown-menu {
    position: static !important;
    float: none !important;
  }
}

/* Opcional: melhora o foco/target das setas no mobile */
#header .menu-arrow {
  display: inline-block;
  padding: .5rem .25rem;
}

/* -------- Cartões / containers -------- */
.form-card {
  background:#fff;
  border-radius:1rem;          /* ~ rounded-4 */
  box-shadow:0 8px 28px rgba(0,0,0,.08);
  padding:1rem;
}
@media (min-width:768px){ .form-card{ padding:2rem; } }

.page-wrap {
  background:#f6f8f7;
  border-radius:0;              /* o section não precisa de rounded */
}

/* -------- Títulos / subtítulos -------- */
.h1-form { font-size:2rem; font-weight:800; color:#1d2125; margin-bottom:.25rem; }
.subtle { color:#198754; font-weight:600; }

/* -------- Mapas -------- */
.map-box {
  height:500px;                 /* 320px em edit se quiseres */
  border:1px solid #e7ecec;
  border-radius:1rem;
  overflow:hidden;
}
@media (max-width:768px){ .map-box{ height:360px; } }

/* -------- Image Picker (unificado) -------- */
/* Estes estilos assumem o _ImagePicker/_ImagePickerCreate */
.imgp{--gap:12px;--br:1rem;--ph:#f2f4f3;--bd:#e9f0ec;--cap:#1b8a5a}
.imgp-grid{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:var(--gap)}
@media (max-width:992px){.imgp-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:576px){.imgp-grid{grid-template-columns:repeat(2,1fr)}}
.imgp-tile{position:relative;aspect-ratio:1/1;border:1px dashed var(--bd);border-radius:var(--br);overflow:hidden;background:var(--ph);display:flex;align-items:center;justify-content:center}
.imgp-tile[data-filled="1"]{border-style:solid;background:#f8fbf9}
.imgp-tile img{width:100%;height:100%;object-fit:cover;display:block}
.imgp-add{background:#fff;border:1.5px dashed #f2c97d;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;cursor:pointer;user-select:none;border-radius:var(--br)}
.imgp-add strong{color:#2c3e50;font-weight:800}
.imgp-add small{color:#6c7a74}
.imgp-cap{position:absolute;left:6px;top:6px;border:0;border-radius:999px;padding:.25rem .6rem;background:var(--cap);color:#fff;font-weight:700;font-size:.75rem;z-index:4}
.imgp-rm{position:absolute;top:6px;right:6px;width:32px;height:32px;border:0;border-radius:999px;background:#fff;color:#d9534f;box-shadow:0 2px 8px rgba(0,0,0,.15);cursor:pointer;z-index:5;line-height:32px;text-align:center;font-weight:800}
.imgp-mk{position:absolute;left:6px;bottom:6px;border:0;border-radius:.5rem;padding:.25rem .5rem;background:#fff;color:#198754;box-shadow:0 2px 8px rgba(0,0,0,.15);font-weight:700;font-size:.75rem;cursor:pointer;z-index:4}
.imgp-drop{pointer-events:none;position:absolute;inset:0;border:2px dashed #94c9b2;border-radius:calc(var(--br) - 2px);opacity:0;transition:.12s}
.imgp.dragging .imgp-drop{opacity:1}

/* -------- Helpers -------- */
.form-hint{ color:#6c757d; font-size:.92rem; }
.badge-soft{ background:#f4f6f5; color:#1d2125; border:1px solid #e7ecec; }

/* ======================== */
/*   ECO MODAL / LIGHTBOX   */
/* ======================== */

.eco-modal .modal-dialog {
  max-width: min(1200px, 96vw);
  margin: 1.25rem auto;
}

.eco-modal .modal-content.eco-modal-content {
  border: 3px solid var(--eco-brand);
  border-radius: 1.2rem !important;
  background: linear-gradient(135deg, #f5fff7 70%, #e8ffe5 100%);
  box-shadow: 0 16px 40px rgba(39, 174, 96, .16), 0 2px 8px rgba(34, 139, 34, .10);
  overflow: hidden;
}

/* Backdrop mais escuro, mas limitado a modais com .eco-modal */
.eco-modal ~ .modal-backdrop.show {
  background-color: rgba(6, 22, 15, 0.75);
}

/* Imagem responsiva, com hover suave */
.eco-modal-img {
  max-width: 97vw;
  max-height: 76vh;
  object-fit: contain;
  background: #f6fff8;
  border-radius: 1rem;
  transition: transform .22s cubic-bezier(.57,1.3,.5,1.06), box-shadow .22s;
}
@media (hover:hover) {
  .eco-modal-img:hover {
    transform: scale(1.03) rotate(-.7deg);
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
  }
}

/* Botão fechar – pill branco com sombra */
.eco-modal .btn-close,
.eco-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px; height: 38px;
  background: #fff !important;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: .95; filter: none;
  box-shadow: 0 2px 12px #1112;
  transition: box-shadow .18s, opacity .12s;
  z-index: 1100;
}
.eco-modal .btn-close:hover { opacity: 1; box-shadow: 0 4px 18px #1113; }

/* Navegação (anterior/seguinte) – circular escuro */
.eco-modal .eco-modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  opacity: .92;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, opacity .12s, background .12s;
  z-index: 1000;
}
.eco-modal .eco-modal-btn:hover { opacity: 1; transform: translateY(-50%) scale(1.04); background:#222; }
.eco-modal .eco-modal-prev { left: 14px; }
.eco-modal .eco-modal-next { right: 14px; }

/* Acessibilidade: foco nítido nos controlos do modal */
.eco-modal .btn-close:focus,
.eco-modal .eco-modal-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #21b995aa;
}

/* Reduzir animações se o utilizador prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .eco-modal-img { transition: none; }
  .eco-modal .eco-modal-btn { transition: none; }
}

/* Dark mode opcional (se usares prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
  .eco-modal .modal-content.eco-modal-content {
    background: linear-gradient(135deg, #0f1d18 70%, #0c2e22 100%);
    border-color: var(--eco-brand-600);
  }
  .eco-modal-img { background: #0f1d18; }
  .eco-modal ~ .modal-backdrop.show { background-color: rgba(0,0,0,.78); }
}

/* ====================== */
/*   PAGINADOR ECORESUPPLY (SUAVE) */
/* ====================== */
.eco-pagination {
  gap: .35rem;
}

.eco-pagination .page-link {
  border-radius: 50% !important;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4f2ee;          /* verde claro bem suave */
  background: #fcfdfc;               /* quase branco */
  color: #3a6f61;                    /* verde acinzentado */
  font-weight: 500;
  transition: all .18s ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.eco-pagination .page-item.active .page-link {
  background: #b7e6d9;               /* verde clarinho */
  border-color: #b7e6d9;
  color: #164b3b;                    /* verde escuro suave para contraste */
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(23,90,70,.15);
}

.eco-pagination .page-link:hover {
  background: #eaf8f4;               /* hover mais claro */
  border-color: #a8dfce;
  color: #70e3c1;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 7px rgba(23,90,70,.12);
}

.eco-pagination .page-item.disabled .page-link {
  opacity: .4;
  cursor: not-allowed;
  background: #f6f7f7;
  color: #b0b7b5;
  border-color: #e1e5e3;
  box-shadow: none;
}

/* ====================== */
/*   Complaints – Imagens */
/* ====================== */

.complaints-list .card-img-wrap img {
  border-radius: 12px;   /* arredonda cantos */
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .18s ease-in-out, box-shadow .18s ease-in-out;
}

.complaints-list .card-img-wrap img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Botão/“chip” compacto e responsivo */
.category-chip{
  display:flex; align-items:center; gap:.5rem;
  padding:.5rem .75rem; min-height:42px;
  border-width:2px; line-height:1.2;
}
.category-chip i{ font-size:1rem; }
.category-chip__label{
  font-weight:600;
  display:-webkit-box; -webkit-box-orient:vertical;
  overflow:hidden; text-overflow:ellipsis;
  -webkit-line-clamp:1; /* 1 linha por defeito */
  line-clamp: 1; /* Standard property for compatibility */
}

/* Mobile: permite 2 linhas para nomes gigantes, sem crescer demais */
@media (max-width: 575.98px){
  .category-chip{ min-height:48px; padding:.55rem .8rem; }
  .category-chip__label{ -webkit-line-clamp:2; line-clamp: 2; }
}

/* Tablet: um pouco mais compacto */
@media (min-width: 576px) and (max-width: 991.98px){
  .category-chip{ min-height:44px; padding:.5rem .85rem; }
}

/* Desktop: ainda mais “clean” */
@media (min-width: 992px){
  .category-chip{ min-height:40px; padding:.45rem .9rem; }
}

/* Selects compactos (opcional) */
.form-select.select2, .form-select.form-select-sm{
  padding-top:.45rem; padding-bottom:.45rem;
}
