/* sidebar.css */
.sidebar {
    width: 250px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #333;
    color: #fff;
    padding-top: 20px;
    overflow-x: hidden;
    transition: 0.5s;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1.1em;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #575757;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 2em;
    margin-left: 50px;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.5s;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar a {
        float: left;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar a {
        text-align: center;
        float: none;
    }
}

#sidebar-toggle {
    display: none;
}

#sidebar-toggle:checked + .sidebar {
    width: 0;
    display: none;
}
