body {
  margin: 0;
  padding: 3rem 1.5rem 5rem 1.5rem;
  font-family: monospace;
  background: linear-gradient(to bottom right, #000000, #1a1a1a, #4a5568);
  color: #9ae6b4;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* .dots-bg { */
/*   position: absolute; */
/*   top: 0; */
/*   left: 0; */
/*   width: 100%; */
/*   height: 100%; */
/*   background-image: radial-gradient(circle, rgba(0, 255, 0, 0.2) 1px, transparent 1px); */
/*   background-size: 30px 30px; */
/*   pointer-events: none; */
/*   z-index: 0; */
/*   transition: transform 0.1s ease-out; */
/* } */

.dots-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(72, 187, 120, 0.6); /* soft green */
  box-shadow: 0 0 6px rgba(72, 187, 120, 0.7);
  transition: transform 0.12s ease-out;
}

.toggle-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.toggle-ios {
  width: 36px;
  height: 20px;
  background-color: #2d3748;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

.toggle-ios.enabled {
  background-color: #48bb78;
}

.toggle-ios-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.2s;
}

.toggle-ios.enabled .toggle-ios-thumb {
  transform: translateX(16px);
}

h1 {
  position: relative;
  top: -2.5rem;
  font-size: 2.25rem;
  font-weight: bold;
  color: #f56565;
  margin-bottom: -1rem;
}

p.description {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.75rem;
  color: #48bb78;
  z-index: 999;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: 0.5rem;
  padding: 1.25rem;
  background-color: #27272a;
  color: #9ae6b4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #2f855a;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card h2 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  font-size: 0.875rem;
}

.chart-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
  background-color: #1a202c;
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #2f855a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.chart-wrapper canvas {
  width: 100%;
  height: 320px;
}

.view-switch-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: 1rem;
}

.view-switch-button {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 9999px;
  border: 1px solid #48bb78;
  background-color: #1a202c;
  color: #9ae6b4;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.view-switch-button:hover {
  background-color: #2f855a;
  transform: translateY(-1px);
}


@media (max-width: 600px) {
  h1 {
    position: relative;
    top: 1rem;
    margin-bottom: 2rem;
  }

  .toggle-wrapper {
    display: none;
  }
}
