/* ===== Base Styles ===== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  line-height: 1.5;
}

/* ===== Header Styles ===== */
.site-header {
  background-color: #D8F98B;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-container img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.site-title {
  font-size: 28px;
  font-weight: 800;
  color: #333;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* ===== Filters Panel ===== */
.filters-panel {
  background-color: #EFF9D8;
  max-width: 1200px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filters-toggle {
  background: #CAF566;
  color: #333;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.filters-toggle:hover {
  background: #BEF048;
  transform: translateY(-1px);
}

.filter-button {
  background: #D8F98B;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  margin-right: 8px;
  margin-bottom: 8px;
}

.filter-button:hover {
  background: #CAF566;
  transform: translateY(-1px);
}

.filter-button.active {
  background: #A4DB23;
  color: #000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== Table Styles ===== */
.table-container {
  max-width: 95%; /* max-width: 1200px; original */
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
}

th {
  background: #CAF566;
  color: #333;
  position: sticky;
  top: 0;
  font-weight: 700;
}

tr {
  transition: background-color 0.2s ease;
}

tr:hover {
  background-color: #EFF9D8;
}

/* Token Icon Styles */
.token-icon {
  width: 40px;
  height: 40px;
  border-radius: 10%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.token-icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.token-address {
  font-family: monospace;
  font-size: 0.9em;
  word-break: break-all;
}

/* Clickable Token Name/Symbol */
.token-clickable {
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px 0;
}

/* Boosted token color */
.boosted-token {
  color: #e3ae02;
}

.token-clickable:hover {
  color: #2a7f00 !important;
}

.token-clickable:hover strong {
  text-decoration: none
}

.lock-container {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lock-container:hover {
  transform: scale(1.15);
}

/* Favorite Icon */
.favorite-icon {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.favorite-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.1);
}

/* ===== DEX Icon Styles ===== */
.dex-icon {
  width: 30px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dex-icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* ===== Social Icons ===== */
.hover-icon {
  transition: all 0.2s ease;
}

.hover-icon[style*="opacity: 0.3"] {
  pointer-events: none; /* Disable hover for inactive icons */
}

.hover-icon:not([style*="opacity: 0.3"]):hover {
  transform: scale(1.2);
  opacity: 1 !important;
}

/* Creator icon styles */
.creator-icon {
  width: 16px;
  margin-left: 4px;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.creator-icon:hover {
  transform: scale(1.1);
}

/* ===== Status Icons ===== */
.status-icon {
  width: 32px;
  height: 32px;
  margin-right: 4px;
  opacity: 1;
  transition: all 0.3s ease;
  object-fit: contain;
}

.status-icon:hover {
  transform: scale(1.1);
}

.status-icon.inactive {
  opacity: 0.3;
  filter: grayscale(100%);
  cursor: default !important; /* Remove help cursor */
}

.status-icon:not(.inactive) {
  cursor: pointer; /* Only active icons are clickable */
}

.status-icon:not(.inactive):hover {
  transform: scale(1.1);
}

.status-icons {
  display: flex;
  align-items: center;
}

/* ===== Pagination ===== */
.pagination-controls {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination-controls button {
  background: #CAF566;
  color: #333;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.pagination-controls button:hover {
  background: #BEF048;
  transform: translateY(-1px);
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.pagination-controls input {
  width: 60px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pagination-controls input:hover {
  border-color: #A4DB23;
}

/* ===== Filter Content ===== */
.filters-content {
  display: none;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

.filters-content.open {
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #fff;
  color: #333;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 30px;
  border-top: 1px solid #eee;
}

/* ===== Special Rows ===== */
.unlegit-row {
  background-color: #ffe6e6;
  transition: all 0.2s ease;
}

.unlegit-row:hover {
  background-color: #ffcccc !important;
}

/* ===== Token Modal Styles ===== */
.token-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.token-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  width: 80%;
  max-width: 600px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close-modal:hover {
  color: #A4DB23;
  transform: scale(1.1);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}

.token-modal-content {
  animation: slideUp 0.3s ease;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 20px;
    min-height: 70px;
  }

  .logo-container img {
    width: 50px;
    height: 50px;
  }

  .site-title {
    font-size: 24px;
  }

  th, td {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .filters-panel {
    margin: 15px 10px;
    padding: 12px;
  }

  .filter-button {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .token-icon {
    width: 40px;
    height: 40px;
    border-radius: 10%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 15px;
  }

  .logo-container img {
    width: 40px;
    height: 40px;
  }

  .site-title {
    font-size: 20px;
  }

  .pagination-controls {
    flex-wrap: wrap;
    gap: 5px;
  }

  .status-icon {
    width: 24px;
    height: 24px;
  }
}

/* ===== Utility Classes ===== */
.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
}

.dex-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.na-text {
  color: grey;
  opacity: 0.6;
  font-style: italic;
}
