:root {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #020617;
    background-image:
        linear-gradient(145deg, rgba(2, 6, 23, 0.9), rgba(43, 31, 1, 0.85) 40%, rgba(49, 50, 44, 0.85) 90%),
        url('/assets/images/template/woodenbeams.png');
    background-repeat: no-repeat, repeat-x;
    background-size: cover, 512px auto;
    background-position: center, top center;
}

main.app-shell {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
}

.app-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 2rem));
    display: flex;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.app-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

.app-nav a,
.app-nav button {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.app-nav a:hover,
.app-nav button:hover {
    background: rgba(148, 163, 184, 0.2);
}

.app-nav .is-active {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.app-nav form {
    margin: 0;
}

.panel {
    text-align: center;
    padding: 3rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.8);
    max-width: 520px;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
}

p {
    margin: 0.75rem 0;
    color: #94a3b8;
}

.meta {
    margin-top: 1.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.1);
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
    color: #cbd5f5;
}
