/* web-pages/shared-styles.css */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevent body scrollbars, manage scrolling in content areas */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5F4F2;
    color: #333333;
    display: flex;
    flex-direction: column; /* Stack header and main content */
    min-height: 100vh;
}

/* --- Main Header --- */
.main-header {
    background-color: #4F5B66; /* Darker header background */
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100; /* Ensure header is above other content */
    flex-shrink: 0; /* Prevent header from shrinking */
    display: flex;
    justify-content: space-between; /* Space out title and nav */
    align-items: center;
    height: 50px; /* Fixed header height */
    position: relative;
}

.main-header .site-title {
    color: #EAEAEA;
    font-size: 1.4em;
    font-weight: 300;
    text-decoration: none;
}
.main-header .site-title:hover {
    color: #ffffff;
}


.main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-header nav li {
    margin-left: 15px;
}

.main-header nav a {
    color: #C0C0C0; /* Lighter grey for links */
    text-decoration: none;
    padding: 10px 5px;
    display: block;
    font-size: 1em;
    border-bottom: 2px solid transparent; /* Placeholder for active state */
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-header nav a:hover {
    color: #ffffff;
}

.main-header nav a.active {
    color: #ffffff; /* White text for active link */
    font-weight: 500;
    border-bottom-color: #88CDF5; /* Highlight color for active link */
}

/* --- Main Content Area --- */
.main-content {
    flex: 1; /* Allow content to grow and fill remaining space */
    overflow: hidden; /* Prevent spilling, manage scrolling inside */
    display: flex; /* Use flex for layout within content area (like tree/info) */
    padding: 15px; /* Add some padding around the content */
    box-sizing: border-box;
}

/* --- General Styles (can be added here or kept page-specific) --- */
h1 { /* Page titles within .main-content */
    color: #637C8A;
    margin: 0 0 15px 0; /* Adjust margin for placement below header */
    font-weight: 300;
    padding: 0;
    text-align: left;
}

/* Scrollbar styles (apply globally if desired) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #ececec; border-radius: 10px; }
::-webkit-scrollbar-thumb { background-color: #b0b0b0; border-radius: 10px; border: 2px solid #ececec; }
::-webkit-scrollbar-thumb:hover { background-color: #637C8A; }
* { scrollbar-width: thin; scrollbar-color: #b0b0b0 #ececec; } /* Apply to all elements */