@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --terminal-bg: #000000;
    --terminal-text: #33ff00;
    --terminal-glow: #33ff00;
    --terminal-dim: #1a8000;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--terminal-bg);
    color: var(--terminal-text);
    font-family: 'VT323', monospace;
    font-size: 18px; /* Slightly smaller for dashboard density */
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    line-height: 1.2;
}

.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.crt {
    height: 100%;
    width: 100%;
    padding: 20px;
    position: relative;
    text-shadow: 0 0 3px var(--terminal-glow);
    overflow-y: auto; /* Allow scrolling if content overflows viewport */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
header {
    text-align: center;
    white-space: pre; /* Preserve spaces for ASCII art/layout */
}

.prompt-line {
    text-align: left;
    margin-bottom: 10px;
}

.header-title {
    font-weight: bold;
    font-size: 1.2em;
}

/* Navigation */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

a {
    color: var(--terminal-text);
    text-decoration: none;
}

a:hover {
    background-color: var(--terminal-text);
    color: var(--terminal-bg);
}

/* Boxes */
.box {
    border: 1px solid var(--terminal-text);
    border-radius: 10px;
    padding: 15px;
    position: relative;
    margin-top: 10px; /* Space for title */
}

.box-title {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--terminal-bg);
    padding: 0 10px;
    font-weight: bold;
}

/* MOTD */
.motd-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spaceship {
    white-space: pre;
    color: #aaddff; /* Slightly different color for the ship? Or keep green */
    text-shadow: 0 0 5px #aaddff;
}

/* Terminal Box */
.terminal-box {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
}

#terminal-output {
    flex-grow: 1;
    white-space: pre-wrap;
    margin-bottom: 5px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: 'VT323', monospace;
    font-size: 1em;
    flex-grow: 1;
    outline: none;
    margin-left: 5px;
    caret-color: var(--terminal-text); /* Blinking cursor color */
    text-shadow: 0 0 3px var(--terminal-glow);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .nav-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Specifics */
.math-content {
    /* white-space: pre; Removed for MathJax */
    font-family: monospace;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Force MathJax to use our terminal green */
.mjx-chtml {
    color: var(--terminal-text) !important;
    outline: none !important;
}
.mjx-container {
    color: var(--terminal-text) !important;
}

.quotes p {
    margin-bottom: 10px;
    font-style: italic;
}

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

.agenda-list li {
    margin-bottom: 15px;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    padding-bottom: 20px;
}

.noodknop {
    background-color: #cc0000;
    color: #ffffff;
    border: 2px solid #ff0000;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 10px #ff0000;
    text-shadow: none;
}

.noodknop:hover {
    background-color: #ff0000;
    box-shadow: 0 0 20px #ff0000;
}

.noodknop:active {
    transform: scale(0.95);
}

/* Cursor Blink */
.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
