body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  background-color: hsl(0, 0%, 0%); /* Black */
  color: hsl(0, 0%, 87%); /* Light Gray */
  margin: 0;
  padding: 0 20px; /* Add left and right margin */
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 40px 20px;
  background-color: hsl(0, 0%, 11%); /* Dark Gray */
  border-bottom: 2px solid hsl(172, 47%, 36%); /* Teal */
  margin-top: 80px; /* Add margin to accommodate both buttons */
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  color: hsl(0, 0%, 100%); /* White */
}

.header-description {
  font-size: 1.1rem;
  color: hsl(0, 0%, 75%); /* Medium Gray */
  max-width: 800px;
  margin: 10px auto 0;
}

.summary-boxes {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* Allow boxes to wrap on mobile */
}

.summary-box {
  flex: 1 1 45%; /* Make boxes take up less width on mobile */
  padding: 15px;
  border: 1px solid hsl(0, 0%, 16%); /* Slightly Lighter Dark Gray */
  border-radius: 5px;
  background-color: hsl(0, 0%, 11%); /* Dark Gray */
  text-align: center;
  min-width: 200px; /* Prevent boxes from becoming too narrow */
}

.summary-box h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: hsl(172, 47%, 36%); /* Teal */
}

.summary-box p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(0, 0%, 100%); /* White */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  table-layout: fixed; /* Add this to control column widths */
}

th, td {
  padding: 10px;
  border: 1px solid hsl(0, 0%, 16%);
  text-align: left;
  word-wrap: break-word; /* Prevent text overflow */
}

th {
  background-color: hsl(0, 0%, 11%);
  color: hsl(172, 47%, 36%);
}

footer {
  text-align: center;
  padding: 20px;
  background-color: hsl(0, 0%, 11%); /* Dark Gray */
  margin-top: 40px;
  border-top: 2px solid hsl(172, 47%, 36%); /* Teal */
}

footer a {
  color: hsl(172, 47%, 36%); /* Teal */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.9rem;
  color: hsl(0, 0%, 75%); /* Medium Gray */
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background-color: hsl(0, 0%, 11%); /* Dark Gray */
  border: 1px solid hsl(172, 47%, 36%); /* Teal */
  color: hsl(0, 0%, 87%); /* Light Gray */
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
}

.tab-button.active {
  background-color: hsl(172, 47%, 36%); /* Teal */
  color: hsl(0, 0%, 100%); /* White */
}

.table-container {
  margin-top: 20px;
}

/* Affiliate Button and Nav Button Shared Styles */
.affiliate-button, .nav-button {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgb(34 223 190);
  color: hsl(0, 0%, 0%);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
}

.affiliate-button:hover, .nav-button:hover {
  background-color: rgb(28 200 170);
}

.affiliate-button {
  top: 10px;
  right: 10px;
}

.nav-button {
  top: 10px;
  left: 10px;
}

.affiliate-button img {
  width: 16px;
  height: 16px;
}

/* Bridge Table Styles */
.copy-button {
  background-color: hsl(172, 47%, 36%);
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 8px;
}

.copy-button:hover {
  background-color: hsl(172, 47%, 30%);
}

.address-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: monospace;
  font-size: 1.1rem;
}

.address-text {
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
  color: hsl(172, 47%, 36%);
  text-decoration: none;
}

.address-text:hover {
  text-decoration: underline;
  color: hsl(172, 47%, 46%);
}

.action-buttons {
  display: none;
}

.action-button {
  background-color: hsl(172, 47%, 36%);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  margin: 0 2px;
  white-space: nowrap;
  min-width: 40px;
  text-align: center;
}

.action-button:hover {
  background-color: hsl(172, 47%, 30%);
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .header-description {
    font-size: 1rem;
  }

  .summary-boxes {
    gap: 10px;
  }

  .summary-box {
    flex: 1 1 100%; /* Full width on mobile */
    min-width: auto;
  }

  .summary-box h3 {
    font-size: 1rem;
  }

  .summary-box p {
    font-size: 1.2rem;
  }

  .affiliate-button, .nav-button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 8px;
  }

  .address-cell {
    flex-direction: row;
    justify-content: flex-end;
    gap: 4px;
  }
  
  .address-text, .copy-button {
    display: none;
  }

  .action-buttons {
    display: flex;
    gap: 4px;
  }

  .action-button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  /* Make table more compact */
  table td {
    padding: 8px 4px;
  }

  /* Adjust token name column width */
  table td:first-child {
    width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 20px 10px;
    margin-top: 60px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .header-description {
    font-size: 0.9rem;
  }

  .affiliate-button, .nav-button {
    top: 5px;
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .affiliate-button {
    right: 5px;
  }

  .nav-button {
    left: 5px;
  }

  .affiliate-button img {
    width: 14px;
    height: 14px;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 6px;
  }

  #data-table th:nth-child(4),
  #data-table td:nth-child(4),
  #data-table th:nth-child(5),
  #data-table td:nth-child(5) {
    display: none; /* Hide less important columns on very small screens */
  }

  .nav-button {
    top: 5px;
    left: 5px;
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .action-button {
    padding: 4px 6px;
    font-size: 0.7rem;
  }

  /* Make token name column even more compact */
  table td:first-child {
    width: 60px;
  }

  /* Simplify button text */
  .action-button[href*="purrsec"] {
    content: "View";
  }
}

.warning-box {
  background-color: hsla(45, 100%, 50%, 0.1);
  border: 1px solid hsla(45, 100%, 50%, 0.3);
  border-radius: 5px;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 800px;
}

.warning-box p {
  margin: 0 0 10px 0;
  color: hsl(45, 100%, 70%);
}

.warning-box ul {
  margin: 0;
  padding-left: 20px;
  color: hsl(45, 80%, 70%);
}

.warning-box li {
  margin: 5px 0;
}

.search-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border: 1px solid hsl(172, 47%, 36%);
  border-radius: 5px;
  background-color: hsl(0, 0%, 11%);
  color: hsl(0, 0%, 87%);
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: hsl(172, 47%, 46%);
}

.search-input::placeholder {
  color: hsl(0, 0%, 50%);
} 