.token-collection h2 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 600;
  direction: ltr;
}

.token-section h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 500;
  direction: ltr;
}

.token-table {
  width: 100%;
  margin-bottom: 100px;
  overflow: hidden;
  /* Ensure rounded corners */
  border-spacing: 0;
  direction: ltr;
  /* Enforce LTR for the table */
  border-color: #E4EAEC;
  border-radius: 16px;
  border-width: 1px;
}

.token-table th,
.token-table td {
  padding: 12px 12px;
  width: auto;
  border: none;
  align-content: baseline;
}

.token-table th {}

.token-table tbody tr:nth-child(odd) {
  /*background-color: #ffffff;*/
}

.token-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.color-card {
  background-color: #ffffff;
  padding: 4px;
  box-sizing: border-box;
}

.color-circle {
  display: block;
  width: 64px;
  height: 32px;
  border-radius: 99px;
  border: 1px solid #E5E5E5;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.color-circle:hover {
  border-radius: 999px;
}

/* Chessboard background */
.color-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 8px 8px;
  background-image: linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-color: transparent;
  z-index: 0;
}

.color-circle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color);
  z-index: 1;
}

.value-rectangle {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background-color: #fafafa;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.copy-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
  margin-left: 6px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .token-table {
    display: none;
    /* Hide the table on mobile */
  }

  .token-card {
    border: 1px solid #E4EAEC;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #ffffff;
  }

  .token-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
  }

  .token-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .token-value {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mode-name {
    font-weight: 500;
    color: #666666;
    flex-shrink: 0;
  }
}

/* Variable names in rectangles */
.token-table td:first-child code {
  display: inline-block;
  padding: 4px;
  border: 1px solid #E4EAEC;
  border-radius: 4px;
  background-color: #fafafa;
  font-size: 14px;
}

.token-description,
.token-description-row {
  width: 100%;
  font-size: 12px;
  color: #555;
  padding-top: 8px;
}

.token-description-inline {
  display: block;
  font-size: 0.8em;
  color: #777;
  margin-top: 2px;
}

.table-divider td {
  border-bottom: 1px solid #E4EAEC;
  padding: 0;
  height: 1px;
}