/* ===== Global ===== */
body {
  background: #979ea5;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #212529;
  padding-bottom: 80px; /* space for FAB */
}

h1, h4, h5, h6 {
  font-weight: 600;
}

/* ===== Navbar ===== */
.navbar {
  border-radius: 0 0 1rem 1rem;
  padding: 0.6rem 1rem;
}

.navbar-brand {
  font-size: 1.25rem;
}

.navbar .btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== Cards & Summary ===== */
.card {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.card-header {
  font-weight: 600;
  background: #f1f3f5;
  border-bottom: none;
}

.summary-card {
  min-height: 110px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.summary-card h6 {
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: .25rem;
}
.summary-card p {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

/* ===== Tables (Transactions) ===== */
.table {
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.9rem;
  background: #fff;
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  vertical-align: middle;
}

.table button {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Modals ===== */
.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.modal-header {
  border-bottom: none;
}

.modal-footer {
  border-top: none;
}

/* ===== Floating Action Button (+) ===== */
.fab-add {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: none; /* hidden until login */
  align-items: center;
  justify-content: center;
  background: #0d6efd;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.fab-add:hover {
  transform: scale(1.05);
  background: #0b5ed7;
}

/* ===== Responsive: Tables → Cards on Mobile ===== */
@media (max-width: 768px) {
  table thead {
    display: none;
  }
  table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }
  table tr {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  table td {
    border: none;
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
  }
}

/* ===== Auth Modal styling ===== */
#authModal .modal-content {
  border-radius: 1rem;
}
#authModal input {
  padding: 0.6rem 0.8rem;
}
#authModal .btn {
  border-radius: 0.75rem;
  font-weight: 500;
}

/* ===== Charts ===== */
canvas {
  max-height: 200px;
}
.summary-card {
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.summary-card .card-body h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.summary-card .desc {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.summary-card i {
  opacity: 0.9;
}

.summary-today {
  background: linear-gradient(135deg, #1a63d1, #3b82f6);
  color: #fff;
  
}

.summary-week {
  background: linear-gradient(135deg, #7d2ac0, #5c1286);
  color: #fdfeff; /* dark text for contrast */
}

.summary-month {
  background: linear-gradient(135deg, #16a34a, #0b4b22);
  color: #fff;
}

.summary-card.usable {
  background: linear-gradient(135deg, #14b8a6, #0d9488); /* teal */
  color: #fff;
}

.summary-card.locked {
  background: linear-gradient(135deg, #6c757d, #495057); /* grey */
  color: #fff;
}

