@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

body {
    margin: 0;
    font-family: Poppins;
    display: grid;
    background-color: #151824;
}
main {
    margin-left: 250px; /* Offset for sidebar */
    padding: 20px;
    color: white;
    transition: margin-left 0.3s ease-in-out;
    flex-grow: 2; /* Ensures main content fills available space */
}
.sidebar {
    width: 250px;
    background-color: #0f111a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    /* Default: Visible */
    transition: transform 0.3s ease-in-out;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}
.page-title {
    color: white;
    align-items: center;

}
.sidebar.hidden {
    transform: translateX(-100%);
}

.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo h2 {
    margin: 0;
    font-size: 1.2rem;
}

.menu {
    flex-grow: 1;
}

.menu-item {
    display: block;
    padding: 10px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
    background-color: #1F2233;
    color: #ffffff;
}

/* Open Button */
.open-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: transparent;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    display: none;
    /* Hide initially */
}

.sidebar.hidden~.open-button {
    display: block;
    /* Show when sidebar is hidden */
}

/* Close Button */
.toggle-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
footer {
    color: white;
    font-weight: lighter;
}