/* Basic Reset & Body Styles */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #333; /* Dark gray background */
    color: #f0f0f0; /* Light gray text */
    line-height: 1.6;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Consistent Header Styles */
#mainHeader {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

#mainHeader .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mainHeader .site-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 500;
}

#mainHeader .site-title a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

#mainHeader .site-title a:hover {
    color: #5b8c5a;
}

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

#mainHeader .main-nav li {
    margin-left: 20px;
}

#mainHeader .main-nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#mainHeader .main-nav a:hover {
    background-color: #5b8c5a;
    color: #fff;
}

#mainHeader .main-nav a.active {
    background-color: #5b8c5a;
    color: #fff;
    font-weight: bold;
}

/* General main content styling */
main {
    flex-grow: 1;
    padding: 20px; /* Added default padding */
}

h2 {
    text-align: center;
    color: #f0f0f0; /* Light text for dark background, consistent with findings */
    /* Consider adding a default margin if appropriate, e.g., margin-bottom: 20px; */
    /* For now, only include text-align and color based on current observations. */
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    flex-shrink: 0;
}

/* Utility: Copy Button */
.copy-btn {
    background-color: #5b8c5a;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* margin-left: 8px; /* Removed for base version */
    vertical-align: middle;
}

.copy-btn:hover {
    background-color: #4a7c5a;
}

.copy-btn:active {
    background-color: #3a6c4a;
}

.copy-btn.copied {
    background-color: lightgreen;
    color: black;
}

/* Utility: Toast Notification Styling */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745; /* Default success */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
    font-size: 0.9em;
    max-width: 90%;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    bottom: 30px;
}

.toast-notification.error {
    background-color: #dc3545;
}
.toast-notification.warning {
    background-color: #ffc107;
    color: #333;
}
