:root {
      --bg: #f5f7ff;
      --card-bg: #f0f2fa;
      --text: #1d1f29;
      --subtext: #63687e;
      --toggle: #aeb3cb;
      --green: #1db489;
      --red: #dc414c;
    }

    body.dark {
      --bg: #1d1f29;
      --card-bg: #252b43;
      --text: #ffffff;
      --subtext: #8b97c6;
      --toggle: linear-gradient(to right, #378fe6, #3eda82);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Inter', sans-serif;
    }

    body {
      font-family: "Inter", sans-serif;
      background: var(--bg);
      color: var(--text);
      padding: 2rem;
    }

    .dashboard {
      max-width: 1000px;
      margin: auto;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }

    .header h1 {
      font-size: 1.5rem;
    }

    .toggle-container {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .toggle-container label {
      margin-left: 0.5rem;
      cursor: pointer;
    }

    .toggle-switch {
      width: 50px;
      height: 25px;
      background: var(--toggle);
      border-radius: 25px;
      position: relative;
      transition: background 0.3s;
    }

    .toggle-switch::after {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      width: 21px;
      height: 21px;
      background: white;
      border-radius: 50%;
      transition: transform 0.3s;
    }

    body.dark .toggle-switch::after {
      transform: translateX(25px);
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
    .nathan{
        border-top: 5px solid hsl(208, 92%, 53%);
    }
.realnathanf {
  border-top: 5px solid;
  border-image: linear-gradient(to right, hsl(37, 97%, 70%), hsl(329, 70%, 58%)) 1;
}
.nathanf{
    border-top: 5px solid hsl(348, 97%, 39%);
}
.cards p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.cards p span {
  display: flex;
  align-items: center;
}
.card-stats {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  justify-content:space-between;
  gap: 0.5em;
}

/* .realnathanf::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(90deg, hsl(37, 97%, 70%), hsl(329, 70%, 58%));
  z-index: 2;
} */
    .card {
      background: var(--card-bg);
      padding: 1.5rem;
      border-radius: 10px;
      text-align: center;
      cursor: pointer;
      transition: transform 0.2s;
    }

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

    .card h2 {
      font-size: 2rem;
      margin: 0.5rem 0;
    }

    .overview {
      font-size: 1.25rem;
      margin-bottom: 1rem;
    }
    .overview-grid .card > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}
    .status {
      font-size: 0.875rem;
      color: var(--subtext);
      margin-bottom: 2rem;
    }

    .positive {
      color: var(--green);
    }

    .negative {
      color: var(--red);
    }
    hr{
        display: none;
    }

    .overview-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
    }
 @media (max-width: 768px) {
  .toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1000px; 
  }
  hr{
    display: block;
    width: 100%;
    height: 0.1px;
    background-color: var(--subtext);
    border: none;
    margin: 1rem 0;
    opacity: 0.25;
    }
  }

@media (max-width: 425px){
    .toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 500px; 
}
}