﻿body {
    min-height: 100vh;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.navbar {
    z-index: 1100;
}

.sidebar {
    height: calc(100vh - 56px);
    width: 250px;
    background-color: #fff;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
}

.sidebar-collapsed {
    transform: translateX(100%);
}

#toggleSidebarBtn {
    position: fixed;
    top: 65px;
    right: 10px;
    z-index: 1300;
    background-color: transparent;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease-in-out;
}

    #toggleSidebarBtn:hover {
        background-color: #f0f0f0;
        border-color: #999;
    }



.content {
    margin-right: 250px;
    padding: 2rem;
    margin-top: 56px;
    transition: margin-right 0.3s ease-in-out;
}

    .content.expanded {
        margin-right: 0;
    }

.sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background-color: #0d6efd;
        color: white !important;
        box-shadow: 0 2px 8px rgb(13 110 253 / 0.4);
    }

#userProfile img {
    object-fit: cover;
    border: 2px solid #ddd;
}
