/* ===============================
   Base Layout
=============================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f9;
  color: #333;
}

header {
  background: #5B5515;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

header h1, header h2, header p {
  margin: 0.2rem 0;
}

nav {
  background: #A39D5F;
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
  border-radius: 5px;
  font-size: 0.95rem;
}

nav a:hover {
  background: #4DB823;
}

.container {
  margin: 20px;
}

.card {
  background: white;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 900px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #95904F;
  color: white;
  margin-top: 20px;
}

/* ===============================
   Buttons (Gold + Neon Hover)
=============================== */
.button,
.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.button,
.primary-btn,
.secondary-btn {
  background: linear-gradient(135deg, #d4af37, #807A23);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  background: #4DB823;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(77, 184, 35, 0.4);
}

.ghost-btn {
  background: transparent;
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: not-allowed;
}

.ghost-btn:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* ===============================
   Header Layout
=============================== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* ===============================
   Crypto Dashboard Table
=============================== */
#crypto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

#crypto-table th,
#crypto-table td {
  padding: 4px 6px;
  text-align: right;
}

#crypto-table th:first-child,
#crypto-table td:first-child {
  text-align: left;
}

#crypto-table thead tr {
  border-bottom: 1px solid #ddd;
}

#crypto-table tbody tr:nth-child(even) {
  background: #f8f8fc;
}

#crypto-table tbody tr:hover {
  background: #e6f7ec;
}

.price-cell {
  font-weight: bold;
}

.change-cell.positive {
  color: #16a34a;
}

.change-cell.negative {
  color: #dc2626;
}

.spark-cell {
  width: 80px;
}

.spark-cell canvas {
  width: 80px !important;
  height: 30px !important;
}

/* ===============================
   Staking List
=============================== */
#staking-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

#staking-list li {
  margin-bottom: 0.25rem;
}

/* ===============================
   Responsive
=============================== */
@media (max-width: 768px) {
  .card {
    margin: 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

