/* =============================================================
   style.css
   Custom styles layered on top of Bootstrap 5. Uses Bootstrap's
   CSS variables + [data-bs-theme] so dark mode "just works" for
   both native Bootstrap components and our custom bits.
   ============================================================= */

body {
    min-height: 100vh;
    background-color: var(--bs-tertiary-bg);
}

.app-navbar {
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 2.2rem;
    opacity: 0.18;
}

.card {
    border-radius: 0.75rem;
}

.badge {
    color: #fff;
    font-weight: 500;
}

.flash-container .alert {
    border-radius: 0.6rem;
}

/* Smart category suggestion highlight */
#categorySuggestion {
    font-size: 0.85rem;
}

/* Notification list */
.list-group-item.bg-body-tertiary {
    border-left: 3px solid var(--bs-primary);
}

/* Login card */
.card.shadow-sm.border-0.mt-5 {
    border-radius: 1rem;
}

/* Responsive table tweaks */
@media (max-width: 576px) {
    .table-responsive table {
        font-size: 0.85rem;
    }
}

/* Dark mode toggle icon transition */
#darkModeToggle i {
    transition: transform 0.3s ease;
}
#darkModeToggle:active i {
    transform: rotate(20deg);
}

/* =============================================================
   Section accent colors
   Used consistently for both a navbar icon and its corresponding
   page's main heading icon, so the two visually match wherever the
   user is in the app. Exact hex values (not Bootstrap's built-in
   text-* utilities) since Reports/Recurring/Goals need specific
   brand colors Bootstrap doesn't ship a utility class for.
   ============================================================= */
.icon-dashboard { color: #0D6EFD; }
.icon-expenses  { color: #DC3545; }
.icon-budgets   { color: #198754; }
.icon-reports   { color: #6F42C1; }
.icon-recurring { color: #FD7E14; }
.icon-goals     { color: #D4A017; }

/* Admin section accent colors - same pattern as above, scoped to the
   Admin nav + each Admin page's main heading icon. Kept as a separate
   icon-admin-* set (rather than reusing icon-dashboard/icon-reports)
   since the Admin palette is intentionally distinct from the user-facing
   one (e.g. Admin Analytics and user Reports are both purple but are
   different sections/pages). */
.icon-admin-dashboard  { color: #0D6EFD; }
.icon-admin-users      { color: #D63384; }
.icon-admin-categories { color: #198754; }
.icon-admin-analytics  { color: #6F42C1; }

/* Recurring Expenses "How this works" info icon: small, compact filled
   yellow circle with a thin black border and a black "i" (still the
   exact same bi-info-circle glyph - only its size/color/border change). */
.recurring-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #FFCC00;
    color: #000000;
    border: 1px solid #000000;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.recurring-help-icon i {
    font-size: 0.82em;
}
.recurring-help-icon:hover,
.recurring-help-icon:focus {
    filter: brightness(0.92);
}
.recurring-help-icon:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}
