/* Tolly Labs Launchpad - Market Atlas Table Stylesheet */

#tolly-tokens-board {
  width: 100%;
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f1f5f9;
  box-sizing: border-box;
}

.market-atlas-card {
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Top Navigation Bar */
.atlas-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1e293b;
  gap: 1rem;
  background: #0b121e;
}

.atlas-top-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.atlas-dropdown-title {
  display: flex;
  flex-direction: column;
}

.atlas-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.atlas-title-btn {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.atlas-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.atlas-search-box input {
  background: #030712;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.45rem 0.75rem 0.45rem 2.2rem;
  color: #f8fafc;
  font-size: 0.85rem;
  width: 220px;
  outline: none;
  transition: all 0.2s;
}

.atlas-search-box input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.atlas-search-icon {
  position: absolute;
  left: 0.75rem;
  color: #64748b;
  font-size: 0.85rem;
  pointer-events: none;
}

.atlas-btn-sm {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.atlas-btn-sm:hover {
  background: #1e293b;
  color: #f8fafc;
}

.atlas-top-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.atlas-view-group {
  display: flex;
  background: #030712;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.atlas-view-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.atlas-view-btn.active {
  background: #0e1726;
  color: #38bdf8;
  border: 1px solid #0284c7;
}

/* Market Atlas Table */
.atlas-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.atlas-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.83rem;
  white-space: nowrap;
}

.atlas-table th {
  background: #070c14;
  padding: 0.75rem 1rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1e293b;
  user-select: none;
  cursor: pointer;
}

.atlas-table th:hover {
  color: #38bdf8;
}

.atlas-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #111927;
  vertical-align: middle;
}

.atlas-table tbody tr {
  transition: background 0.15s ease;
}

.atlas-table tbody tr:hover {
  background: #0f172a;
}

/* Column Specifics */
.col-rank {
  color: #64748b;
  font-weight: 600;
  width: 40px;
  text-align: center;
}

.market-info-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fav-star {
  color: #475569;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.fav-star:hover, .fav-star.active {
  color: #eab308;
}

.token-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #334155;
}

.token-titles {
  display: flex;
  flex-direction: column;
}

.token-title-name {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.1;
}

.token-title-symbol {
  color: #06b6d4;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
}

/* Change & Sparkline */
.change-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.change-badge {
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 65px;
}

.change-positive {
  color: #22c55e;
}

.change-negative {
  color: #f43f5e;
}

.sparkline-svg {
  width: 100px;
  height: 24px;
  overflow: visible;
}

.sparkline-path-pos {
  stroke: #22c55e;
  stroke-width: 1.8;
  fill: none;
  filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.4));
}

.sparkline-path-neg {
  stroke: #f43f5e;
  stroke-width: 1.8;
  fill: none;
  filter: drop-shadow(0 0 3px rgba(244, 63, 94, 0.4));
}

.val-bold {
  color: #f1f5f9;
  font-weight: 600;
}

.val-muted {
  color: #64748b;
}

/* Buttons */
.signal-lens-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.signal-lens-btn::before {
  content: "●";
  color: #38bdf8;
  font-size: 0.6rem;
}

.quick-buy-btn {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid #0891b2;
  color: #38bdf8;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.quick-buy-btn:hover {
  background: #0891b2;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Bottom Pagination Bar */
.atlas-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #070c14;
  border-top: 1px solid #1e293b;
  font-size: 0.78rem;
  color: #64748b;
}

.atlas-page-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  background: #0b121e;
  border: 1px solid #1e293b;
  color: #94a3b8;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

.page-btn.active {
  background: #0e1726;
  border-color: #0284c7;
  color: #38bdf8;
  font-weight: 700;
}

.tokens-loading-state {
  padding: 3rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
