.sidebar {
    background-color: #f8f9fa;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    transition: right 0.3s ease;
    z-index: 1050;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar.show {
    right: 0;
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
}

.main-content {
    transition: margin-right 0.3s ease;
}

.sidebar.show ~ .main-content {
    margin-right: 300px;
}

@media (min-width: 992px) {
    .sidebar {
        display: none !important;
    }

    .sidebar-backdrop {
        display: none !important;
    }

    .main-content {
        margin-right: 0 !important;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.btn-close-custom {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-title {
    margin: 0;
    font-size: 1.25rem;
}