/* Fixed Top Menu Container */
.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #4CAF50;
    z-index: 1001;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Offset main page content so it's not hidden under the fixed menu */
body {
    padding-top: 70px;
}

/* Header row inside the menu (title + toggle button) */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hamburger menu button (left side) */
.menu-button {
    position: absolute;
    left: 0;
    background: none;
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

/* Page title centered */
.page-title {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    text-align: center;
    flex-grow: 1;
}

/* Dropdown menu (initial collapsed state) */
.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #4CAF50;
    border-radius: 5px;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
}

/* Expanded menu (visible state) */
.menu.expanded {
    max-height: 500px;
    padding: 10px;
    margin-top: 8px;
}

/* Menu links */
.menu a {
    color: #4CAF50;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

/* Hover state */
.menu a:hover {
    background-color: #45a049;
    color: white;
}

/* Highlight active link */
.menu a.active {
    background-color: #388E3C;
    color: white;
    font-weight: bold;
}

/* Responsive styles for small screens */
@media (max-width: 600px) {
    .page-title {
        font-size: 1.2rem;
    }

    .menu-button {
        font-size: 1.5rem;
        padding: 5px;
    }

    .menu a {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}