/* --- Overall Page Layout --- */
body {
    display: flex;
    flex-direction: column; /* Stack header, main, and footer vertically */
    min-height: 100vh;      /* Ensure body takes up at least the full screen height */
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
}

/* --- Header Styling --- */
header {
    display: flex;
    justify-content: space-between; /* Pushes items to the edges */
    align-items: center;            /* Vertically centers items */
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
    flex-shrink: 0; /* Prevents the header from shrinking */
}

header .logo-container {
    display: flex;
    align-items: center;
}

header img {
    height: 80px;    
    margin-right: 15px;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    /* The title is centered because space-between pushes the left and right items to the edges */
}

/* This is an invisible spacer to help center the title correctly */
header .header-spacer {
    align-items: flex-end;
    /* width: 55px; Should be roughly the same width as the logo+margin */
}

/* --- Main Content Area --- */
main {
    flex-grow: 1; /* Allows the main content to fill the available space, pushing the footer down */
    width: 100%;
    max-width: 800px;
    margin: 0 auto; /* Center the main content horizontally */
    padding: 20px;
    box-sizing: border-box;
}

/* --- Footer Styling --- */
footer {
    text-align: center;
    /* padding: 15px; */
    background-color: #343a40;
    color: #f8f9fa;
    font-size: 0.9em;
    flex-shrink: 0; /* Prevents the footer from shrinking */
}

footer p {
    margin: 0;
}