/* Form wrapper */
.apparition-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.apparition-form textarea {
  width: 500px;
  max-width: 500px;
  height: 145px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  background-color: #c9c6c6;
}
.apparition-form label {
  margin: 10px 0;
  font-size: 14px;
}

.checker-instruction {
  font-size: 18px;
  margin-bottom: 6px;
  color: #c9c6c6;
}

/* optional: explicitly grey-out placeholder text */
.apparition-form textarea::placeholder {
  color: #999;
}

.apparition-form .button-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.apparition-form button {
  padding: 8px 16px;
  cursor: pointer;
}


/* 1) Two-column layout */
.checker-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  margin: 50px 100px;
}

/* 2) Make the form sticky */
.checker-form-wrapper {
  position: sticky;
  top: 100px;    /* adjust to match your header height */
  align-self: start;
}

/* 3) Style the results container */
.checker-results {
  flex: 2;
  max-height: 850px;               /* or whatever suits your viewport */
  overflow-y: auto;                /* scrollable when too tall */
  background-color: #504A4A;       /* your requested color */
  border-radius: 8px;              /* rounded corners */
  padding: 16px;
  box-sizing: border-box;
}

/* 4) Ensure table and inner counters still look good on dark bg */
.checker-results .results-table,
.checker-results .counters-wrapper,
.checker-results .nft-summary {
  color: #fff;                     /* make text legible on dark bg */
}

.checker-results .results-table th,
.checker-results .results-table td {
  border-color: #777;
}

/* 5) Optional: custom scrollbar (WebKit browsers) */
.checker-results::-webkit-scrollbar {
  width: 8px;
}
.checker-results::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}


/* Results area */
#results-container {
  overflow-x: auto;
  margin: 20px 50px;
  max-width: 600px;
    justify-items: left;
}

/* ── Counters wrapper ─────────────────────────────────────────── */
.counters-wrapper {
  display: flex;
  justify-content: center;      /* center the two boxes */
  gap: 100px;
  margin: 20px auto;            /* auto-center the wrapper itself */
}

/* Wrap around each quantity+suffix */
.nft-summary .nft-summary-item {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 0 6px;
  border-radius: 12px;
  font-weight: 600;
  background-color: rgb(51, 212, 223);
  color: rgb(0, 0, 0);
}

/* If you want different colors per type, override by class: */
.nft-summary .nft-summary-item-ec { background-color: white; }
.nft-summary .nft-summary-item-fe { background-color: rgb(0,243,52); }
.nft-summary .nft-summary-item-se { background-color: rgb(59,130,246); }
.nft-summary .nft-summary-item-pl { background-color: rgb(255, 0, 2); }
.nft-summary .nft-summary-item-nl { background-color: rgb(250,31,255); }
.nft-summary .nft-summary-item-pv { background-color: rgb(51,212,223); }
.nft-summary .nft-summary-item-ag { background-color: rgb(255,246,42); }

/* Ensure the inner suffix text remains visible */
.nft-summary .nft-summary-item .nft-ext {
  background: none;
  padding: 0;
  font-weight: inherit;
  color: inherit;
}



/* ── Results table basics ────────────────────────────────────── */
.results-table {
  width: 100%;
  table-layout: fixed;          /* enforce our fixed column widths */
  border-collapse: collapse;
}
.results-table th,
.results-table td {
  border: 1px solid #ddd;
  padding: 6px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.results-table td:nth-child(1) {
    text-align: center;
}        

.results-table td:nth-child(2) {
   text-align: center; 
}

.nft-counter {
 background-color: green;
 padding: 5px 10px;
}

.apparition-counter {
 background-color: red;
 padding: 5px 10px;
}

/* ── Column widths ───────────────────────────────────────────── */
.results-table th:nth-child(1),
.results-table td:nth-child(1) {
  min-width: 80px;
  max-width: 80px;
  width: 80px;
}

.results-table th:nth-child(2),
.results-table td:nth-child(2) {
  min-width: 100px;
  max-width: 100px;
  width: 100px;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
  min-width: 130px;
  max-width: 130px;
  width: 130px;
}

/* ── Asset Type cell styling ────────────────────────────────── */
/* default padding & centering */
.results-table td.asset-type {
  text-align: center;
  padding: 4px;
}

/* red background when “Apparition” */
.results-table td.asset-type-apparition {
  background-color: red;
  color: #fff;
}

/* grey when “NFT (Converted)” */
.results-table td.asset-type-nft-converted {
  background-color: grey;
  color: #fff;
}

/* ── Style the NFT/App counters ────────────────────────────── */
.counters-wrapper {
  text-align: center;           /* center the child items */
  margin: 20px auto;            /* ensure wrapper is centered */
}

.counters-wrapper .counter-row {
  font-size: 18px;              /* larger text */
  font-weight: 700;             /* bold */
  padding: 8px 12px;            /* extra breathing room */
  border-radius: 4px;           /* soften corners */
}

/* ── Style the breakdown line ─────────────────────────────── */
.nft-summary {
  text-align: center;           /* center the breakdown text */
  font-size: 20px;              /* slightly larger than base */
  font-weight: 600;             /* semi-bold */
  margin-top: 12px;             /* space above */
  margin-bottom: 8px;	
}

/* ── Responsive: stack form + results under 1400px ───────────────── */
@media (max-width: 1400px) {

  .checker-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;    /* limit its width */
    margin: 20px auto;   /* auto left/right centers it */
    align-items: center; /* keeps its children centered */
  }

  .checker-form-wrapper {
    position: static;
    top: auto;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 500px;
  }

  .checker-results {
    width: 100%;
    max-width: 500px;
    max-height: none;
    overflow-y: visible;
  }
}