﻿/* Move down content because we have a fixed navbar that is 50px tall */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        margin-top: 10px;
    }

    .footer {
        left: 0;
    }
}

.sidebar .profile-pic {
    position: sticky;
    top: 0;
    background-color: #002147;
    padding-bottom: 10px;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.top-nav {
    background-color: #002147;
    color: white;
    padding: 10px 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
}

.top-left img {
    height: 40px;
}

.top-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.sidebar .profile-pic {
    text-align: center;
}

    .sidebar .profile-pic img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

.sidebar a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

    .sidebar a i {
        width: 20px;
        margin-right: 10px;
        text-align: center;
    }

    .sidebar a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    background-color: #002147;
    color: white;
    text-align: center;
    padding: 10px;
}

.dropdown-menu {
    left: auto;
    right: 0;
}
/* Sidebar Styles */
.sidebar {
    background-color: #002147;
    color: white;
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 60px;
    left: 0;
    padding-top: 20px;
    transition: transform 0.3s ease;
    z-index: 998;
}

    .sidebar.collapsed {
        transform: translateX(-100%) !important;
    }
/* Always visible on medium and up */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0) !important;
    }
}

/* When sidebar is collapsed, main content fills full width */
.sidebar.collapsed ~ .main-content {
    margin-left: 0;
}