.match-history-container {
  background: #fff;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
  /* max-width: 1300px; */
  margin: auto;
  width: 100%;
}

.match-history-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

.match-history-subtitle {
  color: #555;
  margin-bottom: 1.5rem;
}

.tab-container-mh {
  /* display: flex; */
  justify-content: center;
  display: flex;
  gap: 30px;
  gap: 30px;
  border: none;
  box-shadow: none;
  background: transparent;
  /* Fully invisible */
  padding: 10px 24px;
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); */
  margin-bottom: 30px;
  flex-wrap: wrap;
  margin-top: 4%;
}

.tab-mh {
  padding: 3px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #444;
  background-color: #f9f9f9;

  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  border-radius: 8px;

  /* Softer shadows for white background */
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.1),
    /* outer light shadow */
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    /* inner highlight */
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
  /* subtle depth */

  /* Light gradient for depth */
  background-image: linear-gradient(145deg, #ffffff, #f0f0f0);
}

.tab:hover {
  background-color: #f0f4ff;
  color: #007bff;
}

.tab.active {
  color: #007bff;
  font-weight: 600;
  border-bottom: 3px solid #007bff;
  background-color: #000000;
}

.filters-box {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.field-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  /* keep same width as input/select */
}

.filters-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* start from left */
  gap: 1rem;
  /* spacing between fields */
  column-gap: auto;
  /* horizontal gap between fields */
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.filters-top .form-field {
  flex: 1 1 0;
  /* allow fields to grow/shrink equally */
  margin-left: auto;
  /* push the last field to the right edge */
  margin-right: auto;
}



.filters-box input[type="number"],
.filters-box input[type="text"],
.filters-box select,
.filters-box .dropdown-toggle {
  background: #f3f3f3 !important;
  border: none !important;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  height: 37px;
  width: 180px;
  font-size: 0.95rem !important;
  box-sizing: border-box;
}

/* Optional: Adjust checkbox labels inside dropdowns */
.filters-box .dropdown-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  /* smaller gap between checkbox & text */
  margin: 0;
  /* no extra vertical margins */
  padding: 2px 0;
  /* light breathing room only */
}


.dropdown-options input[type="checkbox"] {
  margin: 0;
  /* remove default margin */
  padding: 0;
  /* remove internal padding */
  width: 14px;
  /* fix box size (optional) */
  height: 14px;
  flex-shrink: 0;
  /* don’t let it shrink */
}


.advanced-toggle {
  background: transparent;
  border: none;
  font-weight: 500;
  color: #000000;
  margin: 0rem 0;
  cursor: pointer;
  margin-left: 0px;
}

.advanced-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.advancedFltr-icon {
  width: 16px;
  /* icon size */
  height: 16px;
  /* icon size */
  stroke-width: 2;
  /* line thickness */
  color: #000000;
  vertical-align: middle !important;
  /* align with text baseline */
  position: relative;
  top: -1px;
  /* move the icon up */
  margin-right: -0px;
  /* space between icon and text */
  font-weight: bold;
}

.advanced-filters.hidden {
  display: none;
}


.advanced-filters input {
  background: #f3f3f3;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 12px;
}

.dropdown-checkbox {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: #f3f3f3;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 0.95rem;
  margin-left: 0 !important;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  color: #000;
}

.dropdown-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-options.hidden {
  display: none;
}


.filter-bottom-row {
  display: flex;
  justify-content: space-between;
  /* text on left, buttons on right */
  align-items: center;
  margin: 1rem 0;
  font-size: 14px;
}

.button-group {
  display: flex;

  gap: 0.5rem;
  /* spacing between buttons */
}



.match-count {
  font-size: 0.95rem;
  color: #555;
}

.totals {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0 !important;
}

.btn-report {
  padding: 10px 16px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* Default: hide mobile */
.mobile-only {
  display: none !important;
}

/* On small screens, swap */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-block !important;
    /* or flex, depending on layout */
  }
}


.btn-report:hover {
  background: #c0392b;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.popup-box h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}

label {
  display: block;
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-submit {
  padding: 8px 14px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit:hover {
  background: #219150;
}

.btn-cancel {
  padding: 8px 14px;
  background: #bdc3c7;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel:hover {
  background: #95a5a6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  /* allow scrolling if content is tall */
  padding: 20px;
}

/* Popup box */
.popup-box {
  background: #1a1f36;
  color: #f1f1f1;
  width: 600px;
  /* adjust width */
  max-width: 95%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 25px 30px;
  position: relative;
  max-height: 90vh;
  /* max height so content doesn't overflow screen */
  overflow-y: auto;
  /* scroll if content exceeds max-height */
  font-family: 'Segoe UI', sans-serif;
}

/* Form styling */
.popup-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.popup-box form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 500;
}

.popup-box form input,
.popup-box form select,
.popup-box form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #2a2f4a;
  color: #fff;
  font-size: 14px;
}

.popup-box form textarea {
  resize: vertical;
}

/* Buttons */
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-submit {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-submit:hover {
  background-color: #45a049;
}

.btn-cancel {
  background-color: #f44336;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-cancel:hover {
  background-color: #da190b;
}

/* Scrollbar styling */
.popup-box::-webkit-scrollbar {
  width: 8px;
}

.popup-box::-webkit-scrollbar-track {
  background: #2a2f4a;
  border-radius: 4px;
}

.popup-box::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.popup-box::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.popup-actions .btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.popup-actions .btn-fetch {
  background-color: #03b3ff !important;

}

.popup-actions .btn-fetch:hover {
  background-color: #bdc3c7;
}

.popup-actions .btn-submit {
  background-color: #00ff62 !important;
  color: #fff;
}

.popup-actions .btn-submit:hover {
  background-color: #bdc3c7;
}

.popup-actions .btn-delete {
  background-color: #e74c3c !important;

}

.popup-actions .btn-delete:hover {
  background-color: #bdc3c7;
}

.popup-actions .btn-cancel {
  background-color: #bdc3c7;
  color: #2c3e50;
}

.popup-actions .btn-cancel:hover {
  background-color: #95a5a6;
}

.sort-container {
  position: relative;
  /* so the popup is positioned relative to this */
  margin-left: auto;
  /* keeps button and popup aligned */

}

.sort-icon {
  width: 15px;
  /* icon size */
  height: 15px;
  /* icon size */
  stroke-width: 2;
  /* line thickness */
  vertical-align: middle;
  /* align with text baseline */
  margin-right: 6px;
  /* space between icon and text */
  margin-right: 2px;
}

.sort-popup {
  position: absolute;
  top: 100%;
  /* directly below button */
  left: 0;
  /* align left edges */
  background: white;
  border: 1px solid #ccc;
  color: #000;
  padding: 10px;
  z-index: 100;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  width: 220px;
}


.sort-popup label {
  /* Make each option a tight 2-column row: [radio][text] */
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  column-gap: 2px;
  /* exact space between radio and text */
  margin: 2px 0;
  padding: 0;
  margin: 2px 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.sort-popup input[type="radio"] {
  /* keep native look */
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;

  /* remove UA spacing */
  margin: 0;
  vertical-align: middle;

  /* visually shrink without custom styling */
  transform: scale(1);
  /* 1 = normal, >1 = bigger */
  transform-origin: left center;

  /* close the residual layout gap caused by scale */
  margin-right: -2px;
  position: relative;
  top: 2px;
  /* move down */
}






.sort-popup.hidden {
  display: none;
}


.clear-button {
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;

}


#popupMessage {
  position: fixed;
  bottom: 300px !important;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 9999;
}

#popupMessage.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}


.header-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr 2fr 1.6fr 1.7fr 1.7fr 1fr;
  /* fractions instead of fixed px */
  background: #f0f0f0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #444;
  gap: 0.5rem;
  /* optional spacing between columns */
}

.header-row span:nth-child(5) {
  /* Tournament */
  margin-left: -40px;
  /* adjust value as needed */
}

.header-row span:nth-child(7) {
  /* Assists */
  margin-left: -60px;
  /* adjust value as needed */
}

.header-row span:nth-child(8) {
  /* Assists */
  margin-left: -90px;
  /* adjust value as needed */
}


@media (max-width: 1010px) {
  .header-row {
    display: none;
  }
}


.header-row span {
  white-space: nowrap;
  /* prevent breaking */
}

.icon-small.no {
  margin-right: -25px !important;
  /* Moves it left */
}

.icon-small.date {
  color: #ff0202 !important;
  /* Moves it left */
}


.match-card {
  background: #101426;
  color: #f1f1f1;
  border-radius: 1rem;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', sans-serif;
}

.match-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#noMatchesMessage {
  text-align: center;
  color: #888;
  font-size: 16px;
  margin: 20px auto;
  font-weight: 500;
  padding: 20px;
  border: 2px dashed #555;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  width: 80%;
}

.hidden {
  display: none;
}


.loader {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #f1f1f1;
}

#match-container.loading .match-card {
  display: none;
}

.result-badge {
  text-transform: uppercase;
}

@media (min-width: 801px) and (max-width: 5000px) {

  /* scroll bar--------- */
  #matches-container {
    margin-top: -1rem;
    max-height: 150vh;
    /* Adjust based on your layout */
    overflow-y: auto;
    /* Enables vertical scrolling */
    padding-right: 10px;
    /* Space so content doesn't overlap scrollbar */
    scrollbar-width: thin;
    /* For Firefox - makes scrollbar slimmer */
  }

  /* For Chrome, Edge, Safari */
  #matches-container::-webkit-scrollbar {
    width: 8px;
    /* scrollbar width */
  }

  #matches-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* track color */
    border-radius: 4px;
  }

  #matches-container::-webkit-scrollbar-thumb {
    background: #888;
    /* scrollbar color */
    border-radius: 4px;
  }

  #matches-container::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* hover color */
  }


  .card-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, auto));
    gap: 0.5rem;
    padding: 1.2rem;
    font-size: 0.95rem;
    align-items: center;
    margin-top: 8px;
    padding-bottom: 10px;
  }

  .fst-row {
    display: flex;
    align-items: center;
    /* vertically center them */
    gap: 30px;
    /* space between "No" and date */
    margin-right: 0rem;
    margin-left: 25px;
  }

  .match-date {
    font-size: 14px;
    color: #d1d5dc;
  }

  .date-text {
    /* margin-left: -6.5rem; */
  }

  .icon-date {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    margin-right: 1px;
    /* stroke-width: 1.5; */
    margin-bottom: 0.2rem;
  }

  .scnd-row {
    display: flex;
    /* arrange children in a row */
    position: relative;
    /* allows absolute positioning inside */
    width: 100%;
    /* optional, full width of parent */
    align-items: center;
    /* vertically center all items */
    justify-content: flex-start;
    /* optional: left-align all items */
    gap: 2rem;
    /* spacing between each child */
    flex-wrap: wrap;
    /* optional: wrap to next line on small screens */
    margin-right: 0;
    /* margin-left: -22rem; */
  }


  .match-teams {
    display: flex;
    /* horizontal layout of team names */
    gap: 0.5rem;
    /* space between forTeam and vsTeam */
    align-items: center;
    /* vertical alignment */
    margin-left: -25.5rem;
    /* remove -8rem which breaks layout */

  }

  .comp {
    display: flex;
    position: absolute;
    justify-content: space-between;
    /* pushes first span left, second span right */
    top: 0;
    left: -115px;
    /* adjust as you like */
    gap: 1px;

    width: 18rem;
  }

  .comp span {
    display: inline-block;
    /* ensure spans behave as boxes */
  }

  .comp .stage {
    text-align: right !important;
    /* optional, ensures right-aligned text */
  }

  .goals {
    position: absolute;
    top: 0;
    right: 280px;
    /* adjust as you like */
  }

  .assists {
    position: absolute;
    top: 0;
    right: 130px;
    /* pin to right edge */
  }

  .result {
    position: absolute;
    top: 0;
    right: 20px;
    /* pin to right edge */
    padding: 4px 0rem !important;
    text-align: center;
  }


  .team-name.for {
    font-weight: bold;
    color: #3498db;
  }

  .team-name.against {
    font-weight: 400;
    font-size: 14px;
    color: #D1D5DC;
    margin-left: 0;
    /* remove the fixed negative margin */
  }


  .against-name-only {
    font-weight: bold;
    color: #fa1515;
    /* yellow example */
    font-size: 0.95rem !important;
  }

  .competition {
    font-weight: bold;
    color: #FDC700;
  }

  .icon-img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
  }


  .result-badge {
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    width: 50px;

  }





  .result-badge.Win {
    background-color: #28a745 !important;
  }

  .result-badge.Loss {
    background-color: #dc3545;
  }

  .result-badge.Draw {
    background-color: #ffc107;
    color: #000;
  }

  .card-footer {
    display: flex;
    justify-content: center;
    padding: 0rem 1rem 1px;
  }

  .details-toggle {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.85rem;
    padding-top: 3px;
  }

  .details-grid strong {
    display: block;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* 👈 Thin underline */
    font-weight: 600;
  }


  .details-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .details-toggle .arrow {
    transition: transform 0.3s ease;
  }


  .match-card.expanded .details-toggle .arrow {
    transform: rotate(180deg);
  }

  .card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #101426;
    padding-left: 1rem;
    padding-top: 10px;
  }

  .match-card.expanded .card-details {
    max-height: 500px;
    padding-left: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* 👈 Add this line */
  }

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

  .performance,
  .goal-types,
  .final-score {
    /* Keep titles styled */
    padding: 0;
    border: none !important;
  }

  .goal-type-list {
    display: flex;
    flex-wrap: wrap;
    /* allow items to go to the next line if needed */
    gap: 0.3rem;
    /* spacing between boxes */
    margin-top: 0.25rem;
  }

  .goal-type-item {
    border: 1px solid #ccc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
  }

  /* .goal-type{
  background-color: #bbb;
  border: solid 1px;
} */

  .performance div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    gap: 1rem;
    font-weight: 400 !important;

    font-size: 12px !important;
  }

  .dribble-icon {
    color: #fb923c;
    /* Tailwind's text-orange-400 */
  }

  .text-purple {
    color: #c084fc;
    /* Tailwind's text-purple-400 */
  }

  .text-blue {
    color: #60a5fa;
    /* Tailwind's text-blue-400 */
  }

  .shot-icon {
    color: #ee2e2e;
  }

  .bcc-icon {
    color: #0dff00;
  }

  .performance .label {
    white-space: nowrap;
  }

  .performance .value {
    font-weight: 600;
  }

  .icon-sm {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    stroke-width: 1.5;
  }

  .align-icon {
    vertical-align: middle;
    position: relative;
    top: -1px;
    /* Adjust to align with text */
  }

  .icon-small {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    /* stroke-width: 1.5; */
  }

  .score-box {
    background: #1a1e33;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);

    display: flex;
    /* REQUIRED */
    flex-direction: column;
    /* stack items vertically */
    align-items: center;
    /* center horizontally */
    justify-content: center;
    /* center vertically (optional here) */

  }

  .for-team-res {
    color: #3498db;
  }

  .against-team-res {
    color: red;
  }


  .score-box .score {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
  }

  .score-box .teams {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.4rem;
  }

  .details-grid>div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 1rem;
  }


  .performance div,
  .goal-types div,
  .final-score {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
  }


  .score {
    font-size: 1.5rem;
    font-weight: bold;
  }

  .teams {
    font-size: 0.85rem;
    margin: 0.25rem 0;
  }

  .final-score .team-name.for {
    color: #3498db;
    font-weight: 600;
  }

  .final-score .team-name.against {
    font-weight: 600;
  }

}

@media (max-width: 768px) {
  .details-grid>div:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
  }
}

.pagination-form {
  text-align: center;
  margin-top: 2rem;
}

.next-button {
  padding: 0.7rem 2rem;
  font-size: 1rem;
  background: #007bff;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
}

.no-matches {
  text-align: center;
  color: #666;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

#load-more {
  background-color: #1e293b;
  /* dark slate */
  color: #f8fafc;
  /* near white */
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, transform 0.2s;
}

#load-more:hover {
  background-color: #0f172a;
  /* darker on hover */
  transform: translateY(-2px);
}

#load-more:active {
  transform: scale(0.98);
}

#load-more:disabled {
  background-color: #64748b;
  /* disabled slate color */
  cursor: not-allowed;
  opacity: 0.6;
}


/* Responsive */
@media (max-width: 768px) {

  .filters-top,
  .advanced-filters {
    flex-direction: column;
  }

  .header-row {
    display: none;
  }

  .card-row {
    grid-template-columns: 1fr;
  }
}