/* Mobile-specific styles */
@media (max-width: 576px) {
    .btn {
        width: 100%; /* Make buttons full-width on mobile */
        margin-bottom: 10px; /* Add spacing between buttons */
    }

    .tag-btn {
        width: auto;
    }

    .form-control {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar .navbar-brand {
        margin-right: 0;
    }
}

/* Adjust modal dialogs on small screens */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px; /* Reduce margins for better fit */
    }
}

body {
    background-color: #ffffff;
}

.container {
    /* max-width: 600px; */
    margin-top: 50px;
}

.card {
    margin: 10px 0;
}

.card-header {
    background-color: #007bff;
    color: white;
}

.card-body {
    background-color: #ffffff;
    border: 1px solid #007bff;
}

.navbar {
    margin-bottom: 20px;
}

.nav-link {
    color: #007bff;
}

.nav-link:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* Ensure the active list item has a contrasting text color */
.list-group-item.active {
    background-color: #007bff;  /* Your preferred highlight color */
    border-color: #007bff;
    color: white;  /* Ensure the text color is white for visibility */
}

/* Ensure the link color within the active list item is also white */
.list-group-item.active a {
    color: white;
    text-decoration: none;  /* Remove underline from links */
}

.transaction-row.editing {
    background-color: #f0f8ff; /* Light blue background */
}

.amount-cell {
    font-family: Consolas;
    font-size: 1.2rem;
    font-weight: bold;
}

.amount-positive {
    color: green;
}

.amount-negative {
    color: red;
}

.cumulative-balance {
    float: right;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: bold;
    color: grey;
}

/* Ensure cards do not overlap and have proper spacing */
.card {
    margin-bottom: 20px;
}

/* Custom CSS */
/* Base styling for tag buttons */
.filter-btn {
    /* Make sure the button only takes up as much space as its content */
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;  /* Prevent wrapping inside the button */
    
    font-size: 0.875rem;  /* Base font size (adjust as needed) */
    height: 2rem;         /* Fixed height for consistency */
    line-height: 2rem;    /* Centers text vertically */
    padding: 0 0.75rem;   /* Horizontal padding */
}


.filter-btn.active {
    /* Highlight active filter buttons */
    background-color: #0d6efd;
    color: white;
}

.filter-btn:hover {
    /* Optional: Change color on hover */
    opacity: 0.8;
}

@media (max-width: 768px) {
    /* Stack filter cards vertically on smaller screens */
    .row .col-md-3 {
        margin-bottom: 15px;
    }

    .filter-btn {
        font-size: 0.75rem;  /* Make font even smaller */
        height: 1.6rem;      /* Reduce height */
        line-height: 1.6rem;
        padding: 0 0.5rem;

    }
}

