/* General Body & Font Styles */
body {
    font-family: 'Nunito', sans-serif;
}

/* Navbar */
.navbar {
    border-bottom: 5px solid #E3DE61;
    z-index: 1050; /* Ensure navbar is above sidebar */
}

.navbar-brand {
    font-family: 'Nunito', sans-serif;
    text-transform: lowercase;
    font-size: 1.8rem;
    font-weight: bold;
    
}

/* Headings */
h1 {
    margin-top: 0.5rem; /* Further reduced margin-top */
    margin-bottom: 0.5rem;
}

/* Card Styles */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 5px; /* Consistent border-radius */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
    margin-bottom: 1rem; /* Space between cards */
}

.card-body {
    padding: 0.5rem; /* Internal padding */
}

.card-title {
    color: #28a745; /* Green color for titles */
    font-weight: bold;
    font-size: 1.15rem;
}

/* List Group Styles */
.list-group-item {
    padding: 0.5rem 1rem; /* Reduced padding for a more compact look */
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0; /* Subtle bottom border for separation */
    border-top: none;
    border-left: none;
    border-right: none;
}

.list-group-item:last-child {
    border-bottom: none; /* Remove border for the last item */
}

.list-group-item a {
    color: #007bff; /* Blue color for links */
    text-decoration: none;
    font-size: 0.85rem; /* Slightly smaller font for a cleaner look */
}

.list-group-item a:hover {
    text-decoration: underline;
}

/* Search Container */
.search-container {
    position: relative;
    width: 50%; /* Set a fixed width for the container */
    margin: 0 auto; /* Center the container */
}

/* Search Input within container */
.search-container #search-input {
    width: 100%; /* Make input fill the container */
}

/* Search Results Dropdown */
#search-results {
    position: absolute;
    top: 100%; /* Position below the search input */
    left: 0;
    width: 100%; /* Match the width of the search input */
    z-index: 1000; /* Ensure it appears above other content */
    background-color: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 .25rem .25rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.175);
    max-height: 300px; /* Limit height and add scroll if many results */
    overflow-y: auto;
    display: none; /* Hidden by default */
}

#search-results.show {
    display: block;
}

#search-results .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

#search-results .list-group-item:first-child {
    border-top: none;
}

#search-results .list-group-item:last-child {
    border-bottom: none;
}

/* Sidebar Toggler Button */
.sidebar-toggler {
    display: block !important; /* Always show the toggler button */
    color: #FFFFFF !important; /* White color for the icon */
    border-color: #FFFFFF !important; /* White border for the button */
}

.sidebar-toggler .fas.fa-bars {
    color: #FFFFFF !important; /* Ensure the Font Awesome icon is white */
}

/* Sidebar Menu Styles */
#sidebarMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px; /* Adjust as needed */
    height: 100%;
    background-color: #f8f9fa; /* Light background for the sidebar */
    padding-top: 70px; /* Adjusted space for the fixed navbar */
    z-index: 1040; /* Ensure it's above other content but below modal backdrops */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

#sidebarMenu.show {
    transform: translateX(0%);
}

body.sidebar-open {
    margin-left: 250px; /* Adjust based on sidebar width */
}

#sidebarMenu .sidebar-content {
    padding: 1rem;
}

#sidebarMenu .nav-link {
    padding: 0.75rem 1rem;
    color: #495057; /* Darker text for better contrast */
}

#sidebarMenu .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
}
