@media screen and (min-width: 640px) {
  .page-header__title-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 25px;
  }
  .page-header {
    flex-direction: row;
  }
  .page-header__title-status {
    margin: 0;
  }
  .page-header__actions {
    justify-content: center;
  }
}

/*  meduim screen devices  */

@media screen and (min-width: 768px) {
  .page-header {
    margin-bottom: 40px;
  }

  .sidebar {
    display: block;
  }

  .dashboard-layout {
    grid-template-columns: 100px 1fr;
    grid-template-areas: "sidebar-area main-area";
  }

  .account-dashboard {
    grid-template-areas:
      "recent-activities income-vs-expenses"
      "latest-transactions latest-transactions"
      "monthly-invoices account-summary "
      "budget-overview payment-methods";
  }
  .stat-card__amount {
    font-size: 24px;
  }
  .stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
/*  large screen devices  */

@media screen and (min-width: 1024px) {
  .stat-card__amount {
    font-size: 36px;
  }
}
/*  extra large screen devices  */

@media screen and (min-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: 245px 1fr;
  }
  .main-actions__list-link,
  .sidebar__nav-link,
  .sidebar__header .page-header__title-text,
  .main-actions__title {
    display: block;
  }
  .sidebar {
    padding: 24px;
  }
  .sidebar__nav-item:first-of-type {
    background-color: var(--color-primary-50);
    color: var(--color-primary-400);
    border: 1px solid var(--color-primary-100);
  }
  .sidebar__nav-item:first-of-type .sidebar__nav-icon {
    border: none;
    background-color: transparent;
  }
  .sidebar__nav-icon {
    width: auto;
    height: auto;
  }
  .sidebar__header .page-header__title-icon {
    width: 50px;
    height: 50px;
  }
  .sidebar__header {
    margin-bottom: 32px;
  }
  .main-actions {
    margin-top: 32px;
  }
  .account-dashboard {
    grid-template-areas:
      " recent-activities latest-transactions latest-transactions"
      "monthly-invoices latest-transactions latest-transactions"
      "budget-overview income-vs-expenses payment-methods"
      "budget-overview account-summary payment-methods";
  }
  .payment-methods {
    width: 400px;
  }
  .payment-methods__card-container {
    width: 100%;
    aspect-ratio: 85.6 / 53.98;
  }
  .card-front,
  .card-back {
    height: 100%;
  }
}
