/* NEW */
html {
    height: 100%;
}

:root {
    --primary-blue: #083d77;
    --accent-yellow: #f4d35e;
    --background-gray: #ebebd3;
    --primary-orange: #f95738
    --card-white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

/* --- General Page Layout --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-gray);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    
    min-height: 80%; 
    display: flex;
    flex-direction: column;
}

/* --- Unified App Header --- */
.app-header {
    background-color: #f95738;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0; /* Ensures the header doesn't shrink */
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: "Grenze Gotisch", cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}
    


.header-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-logo-img {
    height: 32px; /* Constrains the logo size within the header */
    width: auto;
}

.header-logo-text {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-orange);
    display: none; /* Hidden by default */
}

.header-page-title {
    font-family: "Grenze Gotisch", cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-profile-pic {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    cursor: pointer;
}

/* --- Main Content Container --- */
/* This wrapper widens the content area and centers it, providing better scaling. */
.main-content-wrapper {
    width: 90%;
    max-width: 960px; /* Wider content area for desktops */
    margin: 2rem auto;
    
    /* MODIFIED */
    flex-grow: 1; 
    overflow-y: auto; 
}


/* --- Themed Buttons --- */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--primary-blue);
}

.btn-secondary {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}
.btn-secondary:hover {
    background-color: #eab308;
}

.btn-logout {
    background-color: var(--background-gray);
    color: var(--text-dark);
    padding: 8px 16px;
    font-size: 0.9rem;
}
.btn-logout:hover {
    background-color: #c82333;
}


/* --- Responsive Adjustments --- */
@media (min-width: 640px) {
    .header-logo-text {
        display: block; /* Show logo text on larger screens */
    }
}

@media (max-width: 768px) {
    .header-page-title {
        display: none; /* Hide central page title on mobile to save space */
    }

    .main-content-wrapper {
        width: 95%;
        margin: 1rem auto;
    }
}