
/////////////////////////////////////////////////////////////////////////////////////////////
/* Global css */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
}
/* Dashboard Shell*/
.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
/*menu toggle*/
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1rem;
}
/* Sidebar */
.sidebar {
  background: #0f172a;
  color: white;
  padding: 1.5rem 1rem;
}
.close-sidebar {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    /* display: none; */
    /* position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000; */

    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2000;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    position: relative;
    /* z-index: 2100; */
    display: block;
  }
  /*//////////////////////*/
  .close-sidebar {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
  }

  /* Mobile */
  @media (max-width: 768px) {
    .close-sidebar {
      display: block;
    }
  }

  /*/////////////////////*/
  /* 👇 ADD IT HERE */
  body.sidebar-open .menu-toggle {
    visibility: hidden;
  }
}
/*nav*/
.nav {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* Main area */
.main {
  display: grid;
  grid-template-rows: auto 1fr;
}

/* Topbar */
.topbar {
  position: relative;
  /* z-index: 1100; */
  height: 64px;
  padding: 0 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  background-color: aquamarine;
}

/* Content spacing */
.content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card */
.activity-card {
  background: white;
  /* background: #16a34a; */
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.activity-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* List reset */
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  /* padding: 0;
  margin: 0; */
}

/* Each row */
.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
  border-bottom: none;
}

/* Text */
.activity-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-date {
  font-size: 0.85rem;
  color: #94a3b8;
}

.activity-amount {
  font-weight: 600;
}

.activity-amount.positive {
  color: #16a34a;
}

.activity-amount.negative {
  color: #dc2626;
}

/* empty state css*/
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #64748b;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.primary-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  background: #0f172a;
  color: white;
  font-weight: 500;
  cursor: pointer;
}
/* loading state*/
.skeleton-row {
  height: 48px;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Desktop: 3 columns */
@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* KPI Card */
.kpi-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.kpi-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.kpi-value.positive {
  color: #16a34a;
}

.kpi-card,
.activity-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

/*Overlay*/
.overlay {
  display: none;
}

/* Mobile only */
@media (max-width: 768px) {
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 1500;
    display: none;
  }

  .overlay.active {
    display: block;
  }
}

