/* rank styling */
.rank-container {
  max-width: 1400px;
  margin: 0 auto;

  background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );

  padding: 1rem;
}

.rank-section-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 25px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid var(--rank-border);
}

/* --- CARDS GRID --- */
.rank-rewards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .rank-rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rank-reward-card {
  background: var(--rank-card-bg);
  border: 1px solid var(--rank-border);
  padding: 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rank-reward-card:hover {
  border-color: var(--rank-gold);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(117, 248, 188, 0.15);
}

.rank-reward-card.rank-active {
  border-color: var(--rank-gold);
  background: rgba(117, 248, 188, 0.1);
  box-shadow: inset 0 0 10px rgba(255, 204, 0, 0.1);
}

.rank-card-title {
  /* color: var(--rank-gold); */
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.rank-card-text {
  font-size: 12px;
  margin: 6px 0;
  color: var(--rank-gray);
}

.rank-claim-button {
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  color: black;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 800;
  margin-top: 12px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}
.rank-claim-button:hover {
  background: linear-gradient(
    to right,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(117, 248, 188, 0.3);
}

/* --- TABLE SECTION --- */
.rank-table-header-flex {
  margin-bottom: 15px;
}

.rank-data-table {
  width: 100%;
  border-collapse: collapse;
  background: #0a0a0a;
}

.rank-table-head th {
  text-align: left;
  background: #000;
  padding: 15px;
  color: var(--rank-gray);
  font-size: 12px;
  border-bottom: 2px solid var(--rank-border);
}

.rank-table-row td {
  padding: 15px;
  border-bottom: 1px solid var(--rank-border);
  color: var(--rank-gold);
  font-size: 14px;
}

.rank-table-row:hover td {
  background: #1a1a1a;
  color: white;
}

/* --- PAGINATION --- */
.rank-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}

.rank-page-btn {
  background: white;
  color: var(--rank-purple);
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.rank-page-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

.rank-current-info {
  color: var(--rank-gold);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
}
/* =================================================== */
/* ==================   table styling ===============  */
/* =================================================== */

.filter-controls {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding: 12px;
  background-color: #111111;
  border: 1px solid #333;
  border-radius: 6px;
}

.filter-controls label {
  font-size: 0.9em;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.filter-controls input[type="text"],
.filter-controls input[type="date"],
.filter-controls select {
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 0.95em;
  outline: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.filter-controls select option {
  background-color: #1a1a1a;
  color: #fff;
}

.filter-controls input:hover,
.filter-controls select:hover {
  border-color: #75f8bc;
  background-color: #222;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: #75f8bc;
  background-color: #000;
}

.filter-controls button {
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.1s,
    opacity 0.2s;
}

.filter-controls button:hover {
  opacity: 0.9;
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  );
  box-shadow: 0 4px 15px rgba(117, 248, 188, 0.3);
  transform: translatey(-3px);
}

.filter-controls button:active {
  transform: scale(0.96);
}

.data-table-wrapper {
  overflow-x: auto;
  width: 100%;
  border: 1px solid #333;
  border-radius: 4px;
}

.tsdt-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #000;
  min-width: 800px;
}

.tsdt-table th {
  background-color: #022b26;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.85em;
  border-bottom: 2px solid #333;
  padding: 15px 10px;
}

.tsdt-table tbody tr {
  border-bottom: 1px solid #222;
  transition: background-color 0.2s;
}

.tsdt-table tbody tr:nth-child(odd) {
  background-color: #0f0e0e;
}

.tsdt-table tbody tr:nth-child(even) {
  background-color: #161616;
}

.tsdt-table tbody tr:hover {
  background-color: #252525 !important;
}

.tsdt-table td {
  padding: 12px 10px;
  color: #ccc;
  font-size: 0.9em;
}

.tsdt-table .status-mature {
  color: #75f8bc;
  font-weight: bold;
}

.pagination-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 0;
  gap: 15px;
}

.pagination-btn {
  padding: 7px 15px;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.pagination-btn.prev {
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  ) !important;
  color: 000 !important;
}
.pagination-btn.prev:hover {
  background: linear-gradient(
    to right,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  ) !important;
}

.pagination-btn.prev:hover:not(:disabled) {
  background-color: rgba(255, 235, 59, 0.1) !important;
}

.pagination-btn.next {
  background: linear-gradient(
    to left,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  ) !important;
  color: #000 !important  ;
}
.pagination-btn.next:hover {
  background: linear-gradient(
    to right,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  ) !important;
}

.pagination-btn.next:hover:not(:disabled) {
  background-color: #fdd835 !important;
}

.pagination-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  border-color: #444 !important;
}

#no-results {
  text-align: center;
  padding: 40px;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  display: none;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.85em;
  font-weight: 600;
}

.filter-group input,
.filter-group select {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  padding: 10px;
  border-radius: 6px;
  outline: none;
}

.transactions-search-btn {
  background-color: #75f8bc;
  color: #000;
  border: none;
  padding: 11px 25px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.transactions-search-btn:hover {
  transform: translateY(-2px);
}

.show-entries-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- TABLE & PAGINATION --- */

.pagination-info {
  color: #999;
  font-size: 0.9em;
}

@media (max-width: 800px) {
  .filter-controls {
    flex-wrap: wrap;
  }
  .filter-controls input[type="text"] {
    flex-grow: 1;
    min-width: auto;
  }
}

/* =======================================
 ====   farming section styling   ====
 =========================================*/

.tsdt-pool-section {
  width: 100%;
  max-width: 1400px;
  padding: 30px 20px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
}

/* --- Header --- */
.tsdt-header {
  margin-bottom: 20px;
}

.tsdt-header h2 {
  font-size: 2.2em;
  margin: 0;
  font-weight: bold;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tsdt-header p {
  margin: 5px 0 0;
  font-size: 1.1em;
}

/* =================================================== */
/* ==================   transection page styling ===============  */
/* =================================================== */

.transactions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.transactions-header {
  font-size: 2.2em;
  background: linear-gradient(180deg, #75f8bc, #01ba9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  font-weight: 800;
}

/* --- TAB SLIDER NAVIGATION (Laptop & Mobile) --- */
.tabs-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #1f1f1f;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 25px;
  border: 1px solid #333;
}

.transactions-nav {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.transactions-nav::-webkit-scrollbar {
  display: none;
}

.transactions-tab {
  white-space: nowrap;
  padding: 12px 24px;
  background-color: #2a2a2a;
  color: #999;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  flex-shrink: 0;
}

.transactions-tab.active {
  background: linear-gradient(
    to right,
    var(--color-primary-yellow),
    var(--color-primary-yellow-dark)
  ) !important;
  color: #121212;
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.3);
}

.scroll-btn {
  background: #2a2a2a;
  color: #75f8bc;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.scroll-btn:hover {
  background: #333;
}

/* --- PANEL & FILTER STYLES --- */
.transactions-panel {
  /* background-color: #1f1f1f; */

  background: linear-gradient(
    135deg,
    rgba(23, 14, 10, 0.9) 0%,
    rgba(26, 77, 75, 0.971) 100%
  );
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Laptop screens adjustment */
@media (max-width: 1024px) {
  .show-entries-container {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

/* Mobile adjustment */
@media (max-width: 600px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .transactions-search-btn {
    width: 100%;
  }
}

::placeholder {
  color: #aaaaaa !important;
  opacity: 1;
}
/* Target the calendar picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
}

