html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ── Feature 1: Target progress bars ──────────────────────────────────────── */

/* Thin bar that sits under the Available pill in the budget table */
.progress.budget-target-bar {
    height: 4px;
    margin-top: 3px;
}

/* ── Feature 3: Income vs. Targets panel ────────────────────────────────── */

/* (No special CSS needed — the panel uses standard Bootstrap card/badge classes) */

/* ── Feature 4: UI Modernization ────────────────────────────────────────── */

/* Vertically center all content in compact table cells */
.table-sm td, .table-sm th {
    vertical-align: middle;
}

/* "Ready to Budget" card — green tint when positive, red tint when negative.
   Bootstrap 5.1 doesn't have bg-success-subtle / bg-danger-subtle, so we define them here. */
.atb-card.atb-positive { background-color: #d1e7dd; }
.atb-card.atb-negative { background-color: #f8d7da; }

/* Footer polish */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6 !important;
    font-size: 0.85rem;
}

/* Navbar link hover highlight */
.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: .375rem;
}

/* Subtle card entrance animation — only runs when the user hasn't requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .card {
        animation: card-fadein 0.15s ease-out;
    }
}

@keyframes card-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
