﻿/* Styling to fix header, sidebar, and footer */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

#wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
#header {
    height: 60px;
    background-color: #2B2B2B; /* Graphite Grey */
    color: #F5F5F5; /* Light text color for contrast */
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    justify-content: space-between;
}

/* Sidebar */
#sidebar-wrapper {
    width: 240px;
    background-color: #2B2B2B; /* Graphite Grey */
    color: #F5F5F5; /* Light text color for contrast */
    position: fixed;
    top: 60px; /* Aligns below header */
    bottom: 40px; /* Aligns above footer */
    left: 0;
    overflow-y: auto;
    display: none; /* Initially hidden, only visible if signed in */
    border-right: 1px solid #444444; /* Subtle border for separation */
}

    #sidebar-wrapper.show {
        display: block;
    }

.sidebar-heading {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 100%;
    height: auto;
    padding: 10px;
}

.sidebar-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #444444; /* Subtle separator for footer */
    margin-top: 20px;
}

/* Sidebar Navigation Items */
ul.collection {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #2B2B2B; /* Consistent background for the entire sidebar */
    border: none;
}

.collection-item {
    color: #F5F5F5 !important; /* Ensure the text color is enforced */
    padding: 15px 20px;
    /*border-bottom: 1px solid #444444;*/ /* Subtle line to separate items */
    background-color: #2B2B2B !important; /* Matches the sidebar */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none; /* Remove underline */
    font-weight: 500; /* Slightly bolder text for readability */
}

    .collection-item:hover {
        background-color: #007FFF !important; /* Electric Blue hover effect */
        color: #FFFFFF !important; /* Ensure white text on hover */
    }

    .collection-item:active {
        background-color: #2B2B2B;
        color: #007FFF !important; /* Light text on active */
        font-weight:bold;
    }

/* Footer */
#footer {
    height: 40px;
    background-color: #2B2B2B; /* Graphite Grey */
    color: #F5F5F5; /* White text for contrast */
    text-align: center;
    line-height: 40px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Page Content */
#page-content-wrapper {
    margin-top: 60px; /* Push below header */
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 40px; /* Ensure content ends above footer */
    height: calc(100% - 100px); /* Full height minus header and footer */
    margin-left: 0; /* Default without sidebar */
    overflow-y: auto;
}

    #page-content-wrapper.sidebar-visible {
        margin-left: 260px; /* Space for sidebar when visible */
    }
