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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

#expensePieChart {
    max-height: 198px;
    width: 100%;
    height: auto;
}

.text-red{
    color:red;
}

/* Mobile-friendly tables (any with .responsive-table) */
@media (max-width: 576px) {
    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
        width: 100%;
    }

    .responsive-table thead {
        display: none; /* Hide headers on mobile */
    }

    .responsive-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        padding: 0.5rem;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.25rem 0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 0.5rem;
        color: #555;
    }
}

/* Navbar link hover */
.navbar-nav .nav-link:hover {
    color: #1E88E5 !important;
    text-decoration: none;
}

/* Add subtle shadow to navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Brand font & spacing */
.navbar-brand span {
    font-size: 1.25rem;
}

/* Mobile spacing for login button */
@media (max-width: 576px) {
    .navbar-nav .btn {
        margin-top: 0.5rem;
    }
}