/* Base Styles */
body {
    background-color: #1F2C3C; /* Dark background */
    color: #B0BEC5; /* Light Gray text for better readability */
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px; /* Keep padding for general layout */
}

/* Container for Centering and Max Width */
.budget-page {
    width: 100%; /* Make the page full width */
    max-width: 1900px; /* Adjust or remove this */
    margin: 0 auto; /* Centering */
    padding: 0; /* Removed extra padding for budget page */
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 10px; /* Keep existing gap */
    padding: 0; /* Removed padding for grid container */
    margin: 0; /* Removed margin for grid container */
}

.left-sidebar, .sidebar-budget-right {
    background-color: #f9f9f9; /* Softer background */
    border-radius: 12px;
    padding: 10px; /* Adjusted padding for sidebars */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    padding: 10px;
    background-color: #f4f4f4; /* Light gray */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #3A4E62; /* Muted blue-gray for consistency */
}

    .nav-link:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Responsive layout */
    }
}

.header-container {
    display: flex;
    justify-content: flex-start; /* Aligns the header to the left */
    align-items: center; /* Centers items vertically */
    margin-bottom: 0px; /* Adjust space below the header as needed */
}

.family-header {
    text-align: left; /* Ensures text aligns to the left */
    margin: 0; /* Removes default margin */
}

.initial {
    font-weight: bold; /* Adjust as needed */
    font-size: 1.2em; /* Adjust size for initials */
}

.name {
    color: #ffffff; /* White for names */
    font-size: 0.4em; /* Adjust size as needed */
}

/* Specific colors for initials */
.initial.L {
    color: #FF0000; /* Red for first L */
}

.initial.E {
    color: #FF7F00; /* Orange for first E */
}

.initial.W {
    color: #FFFF00; /* Yellow */
}

.initial.E2 { /* Second E */
    color: #00FF00; /* Green */
}

.initial.L2 { /* Second L */
    color: #0088CC; /* Blue */
}

.navbar-nav {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
}

.nav-item {
    margin: 10px 0; /* Adjust spacing between links */
}

.nav-link {
    text-decoration: none; /* Remove underline */
    color: #3A4E62; /* Muted blue-gray for consistency */
    display: flex; /* Use flexbox to align icon and text */
    align-items: center; /* Center items vertically */
}

    .nav-link i {
        margin-right: 8px; /* Space between icon and text */
        font-size: 1.2em; /* Adjust icon size */
    }

/* Sidebar Right Styles */
.sidebar-section {
    margin-bottom: 5px;
}

.sidebar-header {
    cursor: pointer;
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 8px; /* Slightly more padding */
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center items vertically */
    font-size: 14px;
    transition: background-color 0.3s; /* Smooth hover transition */
}

    .sidebar-header:hover {
        background-color: #45a049; /* Darker green on hover */
    }

.accordion-item {
    border-top: 1px solid #ddd; /* Separator between items */
}

.accordion-header {
    display: flex; /* Flexbox for header */
    justify-content: space-between;
    align-items: center; /* Center vertically */
    padding: 8px; /* Padding for accordion header */
    cursor: pointer;
    background-color: #f1f1f1; /* Light background for header */
    border-radius: 4px;
    transition: background-color 0.3s; /* Smooth hover transition */
}

    .accordion-header:hover {
        background-color: #e0e0e0; /* Slightly darker background on hover */
    }

.accordion-content {
    display: none; /* Hidden by default */
    background-color: #fff; /* White background for content */
    padding: 5px; /* Padding for content */
    border-radius: 4px; /* Rounded corners */
}

.item-name {
    font-weight: normal; /* Normal weight for item names */
    font-size: 12px; /* Smaller font size */
}

.item-amount {
    color: #333;
    font-size: 12px; /* Smaller font size for amounts */
}

.date-picker {
    position: relative;
}

.date-picker-toggle {
    background-color: #4A6572; /* Muted blue-gray */
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

    .date-picker-toggle:hover {
        background-color: #3A4E62; /* Darker blue-gray on hover */
    }

.date-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    width: max-content;
}

    .date-picker-dropdown select {
        background-color: #444;
        color: #ffffff;
        border: none;
        padding: 8px;
        border-radius: 4px;
        font-size: 14px;
        appearance: none;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .date-picker-dropdown select:hover {
            background-color: #555;
        }

