/* Sidebar styles */
#sidebar {
    height: 100%; /* Full height */
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #333; /* Dark background for the sidebar */
    overflow-x: hidden;
    transition: 0.3s; /* Slide effect */
    padding-top: 8vh; /* Space for the top bar */
    z-index: 999;

    display: flex;              /* Enable Flexbox */
    flex-direction: column;     /* Stack items vertically */
    justify-content: flex-start;/* Align items at the top */
    align-items: center;        /* Center items horizontally */
}


/* Sidebar links */
#sidebar a {
    width: 100%;
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.2rem;
    color: white;
    display: block;
    transition: 0.3s;
}

/* On hover, the links will change color */
#sidebar a:hover {
    background-color: #575757;
}

/* Close button for sidebar */
#close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    color: white;
    padding: 10px;
    cursor: pointer;
}

/* Footer section styling to override sidebar link styles */
.sidebar-footer {
    margin-top: auto;           /* Push this section to the bottom */
    text-align: center;
    width: 100%;                /* Ensure footer takes full width of sidebar */
}

.sidebar-footer hr {
    margin-top: 10px;
    border: none;
    height: 2px;
    background-color: #fff;
    width: 80%;
    margin: 10px auto;
}

/* Specific rules to reset any sidebar link styles on footer */
.sidebar-footer p {
    font-size: 1rem !important;      /* Reset font size */
    color: #ccc;          /* Light color for footer text */
    margin: 0 !important;            /* Remove any margin */
    padding: 0 !important;           /* Remove padding */
}

.sidebar-footer a {
    font-size: 1rem !important;      /* Ensure normal size */
    color: inherit;       /* Inherit color from the <p> tag (reset from link color) */
    padding: 0 !important;  
    padding-bottom: 10px !important;  
    text-decoration: none !important;/* No underline */
}

.sidebar-footer a:hover {
    background-color: #333 !important;
}