body { 
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header { 
    background-color: #2c3e50; 
    color: #ecf0f1; 
    padding: 1rem; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header h1 { 
    margin: 0; 
    font-size: 2rem;
}
nav { 
    margin-top: 1rem; 
    display: flex;
    flex-wrap: wrap;
}
nav a { 
    color: #ecf0f1; 
    text-decoration: none; 
    margin-right: 1rem; 
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    background-color: #34495e;
    margin-bottom: 0.5rem;
}
nav a:hover {
    background-color: #2980b9;
}
main { 
    padding: 2rem; 
    flex: 1;
}
.flash-messages {
    list-style-type: none;
    padding: 0;
}
.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.flash-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
footer { 
    background-color: #2c3e50; 
    color: #ecf0f1; 
    text-align: center; 
    padding: 1rem; 
    margin-top: auto;
}

/* Mobile Menu Styles */
.mobile-menu-button {
    display: none; /* Hidden by default */
    background: #34495e;
    color: #ecf0f1;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
}

.mobile-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    background-color: #2c3e50; /* Match header background */
    padding: 1rem;
}

.mobile-menu a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #34495e; /* Separator */
    transition: background-color 0.3s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background-color: #2980b9;
}

.mobile-menu.active {
    display: flex; /* Show when active */
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    nav#main-nav {
        display: none; /* Hide main nav on small screens */
    }
    .mobile-menu-button {
        display: block; /* Show hamburger button */
        position: absolute; /* Position it if needed */
        top: 1rem;
        right: 1rem;
    }
    /* Adjust header/h1 if button overlaps */
    header h1 {
        margin-right: 50px; /* Add space for the button */
    }
}
