:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,.08);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.premium-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.stat-card {
  border-radius: 18px;
}

.table thead th {
  white-space: nowrap;
}

.text-wrap {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ledger-table tbody tr {
  border-top: 1px solid rgba(15,23,42,.06);
}

.ledger-table td, .ledger-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.btn {
  white-space: nowrap;
}

/* ✅ Footer & Space Adjustments */
footer {
  margin-top: 1.5rem !important; /* Content theke footer-er gap komano */
}

.footer-content {
  line-height: 1.2; /* Line gap komano */
  letter-spacing: 0.2px;
}

.footer-content span {
  font-size: 0.85rem;
}

/* ✅ Mobile Optimizations */
@media (max-width: 768px) {
  html[data-mobile-view="card"] .ledger-table thead {
    display: none;
  }

  html[data-mobile-view="card"] .ledger-table,
  html[data-mobile-view="card"] .ledger-table tbody,
  html[data-mobile-view="card"] .ledger-table tr,
  html[data-mobile-view="card"] .ledger-table td {
    display: block;
    width: 100%;
  }

  html[data-mobile-view="card"] .ledger-table tr {
    background: #fff;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .05);
  }

  html[data-mobile-view="card"] .ledger-table td {
    border: none !important;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  html[data-mobile-view="card"] .ledger-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    min-width: 90px;
    flex: 0 0 auto;
    font-size: 0.8rem;
  }
}