body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa; /* Light background for content area */
    margin: 0; /* Reset default margin */
}

/* --- Top Navbar --- */
.bg-custom-dark {
    background-color: #0f051e; /* A standard dark color, adjust if needed */
}

.navbar {
    border-bottom: 1px solid #0f051e; /* Subtle border */
    height: 56px; /* Standard navbar height */
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar .nav-link {
    color: #adb5bd; /* Lighter text for contrast */
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff;
}
.navbar .dropdown-menu {
    background-color: #0f051e; /* Darker dropdown */
}
.navbar .dropdown-item {
    color: #adb5bd;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #ffffff;
    background-color: #343a40;
}


/* --- Main Container (Sidebar + Content) --- */
.main-container {
    padding-top: 56px; /* Height of the fixed navbar */
}

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    min-height: calc(100vh - 56px); /* Full height minus navbar */
    background-color: #291d3b; /* Dark blueish color from image */
    padding-top: 0; /* Header has its own padding */
    transition: width 0.3s ease;
    overflow-y: auto; /* Scroll for long menus */
}

.sidebar-header {
    border-bottom: 1px solid #55038C; /* Subtle separator */
    min-height: 60px; /* Consistent height for header */
}

.sidebar-header .logo-icon {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f29f05; /* Teal-like color for "VA" */
    border: 2px solid #f29f05;
    padding: 2px 8px;
    line-height: 1;
}

.sidebar-header .logo-text {
    font-size: 0.8rem;
    line-height: 1.1;
    font-weight: 500;
    color: #fff;
}

.sidebar .nav-link.sidebar-link {
    color: #adb5bd; /* Light grey for links */
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    display: flex; /* To align icon and text */
    align-items: center; /* Vertically center icon and text */
}

.sidebar .nav-link.sidebar-link i {
    font-size: 1.1rem; /* Icon size */
}

.sidebar .nav-link.sidebar-link .bi-chevron-up,
.sidebar .nav-link.sidebar-link .bi-chevron-down {
    transition: transform 0.2s ease-in-out;
    font-size: 0.8rem; /* Smaller chevron */
    margin-left: auto; /* Pushes chevron to the right */
}

.sidebar .nav-link.sidebar-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}
.sidebar .nav-link.sidebar-link[aria-expanded="true"] .bi-chevron-up {
    transform: rotate(180deg); /* Keep it consistent if you switch icons */
}


.sidebar .nav-link.sidebar-link:hover {
    color: #ffffff;
    background-color: #55038C; /* Darker hover */
}

.sidebar .nav-link.sidebar-link.active {
    color: #ffffff;
    background-color: #55038C; /* Bootstrap primary blue for active */
    font-weight: 500;
}

.sidebar .sub-menu .nav-link.sidebar-link {
    padding-left: 2.5rem; /* Indent sub-menu items */
    font-size: 0.9rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.sidebar .sub-menu .nav-link.sidebar-link.active {
    color: #ffffff; /* Ensure active sub-item text is white */
    background-color: #55038C; /* Slightly darker blue for active sub-item */
}

.sidebar .sub-menu {
    background-color: rgba(0,0,0,0.1); /* Slightly darker background for sub-menu container */
}


/* --- Content Area --- */
.content-area {
    background-color: #ffffff; /* White background for content */
    overflow-y: auto; /* Scroll if content is too long */
}

/* Optional: Style for when sidebar might be collapsible (not implemented here, but good for future) */
/*
@media (max-width: 991.98px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .sidebar.show {
        width: 260px;
    }
}
*/