* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.nav-link {
    color: #000;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: #EADDCA;
    color: white;
    padding: 20px;
    position: fixed;
    transition: width 0.3s;
    flex-direction: column;
    z-index: 1;
    left: 0;
    top: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 100%;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px;
    margin: 5px 0;
    background: #fff;
    cursor: pointer;
    text-align: left;
    border-radius: 5px;
    transition: background 0.3s;
    z-index: 1;
}

.sidebar ul li:hover {
    background: #1abc9c;
}

.sidebar ul .sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.sidebar ul li:hover .sub-menu {
    display: block;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    width: 80%;
    justify-content: center;
    display: flex

}

.sidebar-footer a {
    text-align: center;
}

.main-content {
    margin-left: 270px;
    padding: 20px;
    width: calc(100% - 270px);
    transition: margin-left 0.3s;
}

.main-content h1 {
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .sidebar ul li {
        text-align: left;
        padding-left: 20px;
    }

    .sidebar ul li:hover {
        background: #2c3e50;
    }

    .sidebar:hover {
        width: 250px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}