:root {
  --bt-bottom-nav-h: 56px;
}

/* =========================================================
   Layout spacing (prevent bottom nav overlap on mobile)
========================================================= */
@media (max-width: 991.98px) {
  .bt-main {
    padding-bottom: calc(var(--bt-bottom-nav-h) + 18px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   Bottom Navigation
========================================================= */
.bt-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--bt-bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 1030;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bt-bottom-nav a {
  text-decoration: none !important;
  color: #6c757d;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.bt-bottom-nav a i {
  font-size: 22px;
}

.bt-bottom-nav a.active {
  color: #0d6efd;
}

/* Center add button */
.bt-bottom-nav a.bt-add {
  background: #0d6efd;
  color: #fff !important;
  width: 48px;
  height: 48px;
  margin: auto;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35);
}

.bt-bottom-nav a.bt-add i {
  font-size: 24px;
}

.bt-bottom-nav a.bt-add.active {
  background: #0b5ed7;
}

.bt-bottom-nav a:active {
  transform: scale(0.96);
}

/* =========================================================
   Charts
========================================================= */
.bt-chart-wrap {
  height: 260px;
}

@media (max-width: 576px) {
  .bt-chart-wrap {
    height: 220px;
  }
}

/* =========================================================
   Badges (Payment / Purpose)
========================================================= */
.bt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.bt-badge i {
  font-size: 1rem;
  opacity: 0.95;
}

/* Payment colors */
.bt-upi {
  background: #0d6efd;
} /* blue */
.bt-cash {
  background: #198754;
} /* green */
.bt-bank {
  background: #20c997;
} /* teal */
.bt-debit {
  background: #fd7e14;
} /* orange */
.bt-credit {
  background: #dc3545;
} /* red */

/* Purpose colors */
.bt-personal {
  background: #0d6efd;
} /* blue */
.bt-family {
  background: #ffc107;
  color: #212529;
} /* amber */
.bt-work {
  background: #6f42c1;
} /* purple */

.bt-muted {
  background: #6c757d;
} /* fallback */

/* =========================================================
   Summary Cards
========================================================= */
.bt-summary-card {
  border-radius: 14px;
}

.bt-summary-label {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bt-summary-value,
.bt-summary-total {
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .bt-summary-card .card-body {
    padding: 16px 18px;
  }
}

/* =========================================================
   Day-wise expense grouping
========================================================= */
.bt-day-card {
  margin-bottom: 1.25rem;
  border-radius: 10px;
  overflow: hidden;
}

.bt-day-header {
  background: #e9ecef;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bt-exp-item {
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}

/* =========================================================
   Mobile filter accordion
========================================================= */
.bt-accordion-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bt-accordion-btn {
  font-weight: 700;
}

.bt-accordion-btn:not(.collapsed) {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}

.bt-filter-chip {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
}

/* =========================================================
   Mobile actions (3-dots button)
========================================================= */
.bt-action-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
