/* --- Root Variables & Body --- */
:root {
    --dark-bg: #0d1117;
    --medium-dark-bg: #161b22;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-red: #da3633;
    --accent-red-dark: #8B0000;
    --accent-blue: #58a6ff;
    --accent-green: #238636;
}

html {
    overflow-y: scroll; /* Always show vertical scrollbar to prevent layout shifts */
    height: 100%; /* Ensure html element takes full height */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Ensure body is at least the full viewport height */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Logo --- */
.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 0;
    padding: 0;
}

.logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0f0f0;
    text-decoration: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.logo .logo-key {
    color: var(--accent-red-dark);
}

/* --- Flashed Messages --- */
.messages {
    padding: 0;
    margin: 0 auto 1.5rem auto;
    max-width: 800px;
    list-style: none;
    transition: opacity 0.5s ease-in-out; 
}

.messages ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.messages li {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 500;
}

.messages li.success {
    background-color: rgba(35, 134, 54, 0.2);
    border-color: rgba(56, 139, 253, 0.3);
    color: #3fb950;
}

.messages li.danger {
    background-color: rgba(218, 54, 51, 0.15);
    border-color: rgba(248, 81, 73, 0.4);
    color: #f85149;
}

.messages li.info {
    background-color: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.4);
    color: #58a6ff;
}

/* --- Header Navigation Buttons --- */
.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-button {
    color: #c9d1d9;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-red-dark); /* Dark red border */
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: transparent;
}

.nav-button:hover {
    background-color: var(--accent-red-dark);
    color: #ffffff;
    border-color: var(--accent-red-dark);
}

