body {
  background: #f7f1e8;
  color: #2d241f;
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  background: #4b2e2b;
}

.sidebar-wrap {
  min-height: calc(100vh - 56px);
  background: #5b3a35;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-link {
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  display: block;
  transition: 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.content-area {
  min-height: calc(100vh - 56px);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
}

.stat-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.income-card {
  background: #dff5e6;
}

.expense-card {
  background: #ffe1e1;
}

.neutral-card {
  background: #fff8df;
}

.stat-label {
  font-size: 14px;
  color: #6b5e57;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
}

.card {
  border-radius: 16px;
}

.table thead th {
  background: #f2eadf;
}

.btn-dark {
  background: #4b2e2b;
  border-color: #4b2e2b;
}

.btn-dark:hover {
  background: #3a221f;
  border-color: #3a221f;
}

.container-fluid,
.container {
  width: 100%;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

canvas {
  max-width: 100%;
}

.form-control,
.form-select,
.btn {
  min-height: 44px;
}

.stat-value {
  word-break: break-word;
}

@media (max-width: 991.98px) {
  .sidebar-wrap {
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .sidebar-link {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    width: auto;
  }

  .content-area {
    padding: 16px !important;
  }

  .page-title {
    font-size: 22px;
  }

  .stat-value {
    font-size: 22px;
  }

  .topbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .topbar .navbar-brand {
    font-size: 18px;
  }

  .card-body {
    padding: 16px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 14px;
  }

  .content-area {
    padding: 12px !important;
  }

  .page-title {
    font-size: 20px;
    margin-bottom: 16px !important;
  }

  .card {
    border-radius: 12px;
  }

  .card-body {
    padding: 14px;
  }

  .stat-card .card-body {
    padding: 14px;
  }

  .stat-label {
    font-size: 13px;
  }

  .stat-value {
    font-size: 20px;
  }

  .auth-card {
    max-width: 100%;
    margin: 12px;
  }

  .table {
    font-size: 13px;
    white-space: nowrap;
  }

  .btn,
  .form-control,
  .form-select {
    font-size: 14px;
  }

  .sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sidebar-link {
    text-align: center;
    padding: 10px;
  }
}

@media (max-width: 575.98px) {
  .sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .topbar .ms-auto {
    gap: 8px !important;
  }

  .topbar .text-white.small {
    font-size: 12px !important;
  }

  .table th,
  .table td {
    padding: 8px;
  }
}


.topbar {
  background: #4b2e2b;
}

.mobile-menu-btn {
  border: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: #2d241f;
  border-radius: 2px;
}

.sidebar-wrap {
  min-height: calc(100vh - 56px);
  background: #5b3a35;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-link {
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  display: block;
  transition: 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(255,255,255,0.14);
  border-left-color: #f4d6a0;
  color: #fff;
  font-weight: 700;
}

.mobile-offcanvas {
  max-width: 280px;
}

.mobile-sidebar-wrap {
  background: #5b3a35;
  min-height: 100%;
  padding: 12px 0;
}

.mobile-sidebar-link {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.offcanvas .offcanvas-header {
  background: #4b2e2b;
  color: #fff;
}

.offcanvas .btn-close {
  filter: invert(1);
}

@media (max-width: 991.98px) {
  .content-area {
    padding: 16px !important;
  }

  .page-title {
    font-size: 22px;
  }

  .stat-value {
    font-size: 22px;
  }

  .topbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .topbar .navbar-brand {
    font-size: 18px;
  }
}

@media (max-width: 575.98px) {
  .topbar .text-white.small {
    font-size: 12px !important;
  }

  .content-area {
    padding: 12px !important;
  }
}