#app-container {
    width: 100%;
    position: relative;
    flex-grow: 1;
}

.app-header {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--block-color);
    box-shadow: 0 2px 10px var(--block-color);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-sizing: border-box;
    height: 70px; /* Set a fixed height for the header */
    justify-content: space-between; /* To push hamburger to the right */
}

.header-logo-container {
    height: 100%; /* Make container fill header height */
    display: flex;
    flex-direction: row; /* Changed to row for horizontal display */
    align-items: baseline; /* Vertically center items */
    justify-content: flex-start; /* Align logo and beta tag to the left */
    gap: 10px; /* Add gap between logo and beta tag */
    cursor: pointer; /* Indicate clickable element */
}

.header-logo {
    height: 100%; /* Make logo fill the container height */
    width: auto;
    filter: drop-shadow(0 0 5px var(--background-color)) drop_shadow(0 0 15px var(--background-color));
}

.beta-tag-container {
    /* Style for the container wrapping Beta版 text */
    /* margin-top: 0; Removed as it's now horizontal */
    /* margin-left: 10px; Removed as gap is now used */
    /* text-align: center; Removed as it's now horizontal */
}

.beta-tag {
    font-size: 1em;
    color: #FFD700; /* Gold color for beta tag */
    font-weight: bold; /* Make it bold */
}

/* --- Header Visibility Control --- */
.header-hidden .app-header {
    display: none;
}
.header-hidden .app-view {
    padding-top: 20px; /* Reset padding when header is hidden */
}

.app-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align to start for content */
    padding: 20px;
    padding-top: 90px; /* Header height (70px) + original top padding (20px) */
    box-sizing: border-box;
    transition: opacity 0.5s ease-in-out;
    overflow-y: auto; /* Allow scrolling for content */
    min-height: calc(100vh - 36px);
}

.app-view.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* --- Terms Link --- */
.terms-link-container {
    position: absolute;
    bottom: 40px;
    right: 25px;
    z-index: 10;
}

.terms-link-container a {
    color: #FFFFFF;
    text-decoration: none;
}

.terms-link-container a:hover {
    text-decoration: underline;
}

/* LifeWareLab Credit Styles */
.lifewarelab-credit {
    background-color: var(--block-color); /* Use a theme color */
    color: var(--text-color);
    text-align: center;
    padding: 5px 0;
    font-size: 0.8em;
}

.lifewarelab-credit a {
    color: var(--primary-color);
    text-decoration: none;
}

.lifewarelab-credit a:hover {
    text-decoration: underline;
}

.lifewarelab-logo {
    height: 2em; /* Adjust size as needed */
    vertical-align: middle;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-view {
        padding-top: 90px; /* Keep padding consistent or adjust as needed for mobile */
    }
    .splash-logo {
        height: 80px; /* Reduced height for mobile */
        max-width: 90%; /* Added to ensure it fits on very small screens */
        margin-bottom: 20px;
    }
    h1 {
        font-size: 2em;
    }

    button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .config-tabs, #final-results-list {
        width: 100%;
        padding: 15px;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-buttons li {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}