/* Base styling */
body {
    background-color: #0a0a0a;
    color: #00ff9f;
    font-family: "Courier New", monospace;
    margin: 0;
    cursor: crosshair;
}

/* 🔥 Matrix background canvas (NEW) */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 0.06;
    pointer-events: none;

    z-index: 0; /* ← KEY CHANGE */
}

/* Vignette (dark edges) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 60%,
        rgba(0,0,0,0.65)
    );
    pointer-events: none;
    z-index: 0;
}

/* CRT scanlines overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        rgba(0,0,0,0.15) 0px,
        rgba(0,0,0,0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

/* Main container */
.container {
    width: 800px;
    margin: auto;
    padding: 20px;
    position: relative;
    z-index: 2; /* content stays above all effects */
}

/* Headings and subtitles */
h1 {
    text-align: center;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
}

.subtitle {
    text-align: center;
    color: #ff00ff;
    margin-bottom: 5px;
}

.doctrine {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

/* Generic boxes */
.box, .logs-box, .logs-sidebar, .observation-box {
    border: 1px solid #00ff9f;
    padding: 12px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 8px #00ff9f;
    border-radius: 5px;
}

/* Links */
a {
    color: #00ffff;
    text-decoration: none;
}

a:hover {
    color: #ff00ff;
}

/* Buttons */
button {
    background: black;
    color: #00ff9f;
    border: 1px solid #00ff9f;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: #00ff9f;
    color: black;
}

/* Back button */
#backButton {
    margin-bottom: 15px;
}

/* Layout for logs page */
.logs-layout {
    display: flex;
    gap: 20px;
}

/* Sidebar styling */
.logs-sidebar {
    flex: 0 0 180px;
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 5px;
    height: 500px;
    overflow-y: auto;
}

/* Sidebar clickable links */
.logs-sidebar a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    color: #00ff9f;
    cursor: pointer;
}

.logs-sidebar a:hover {
    background: rgba(0,255,159,0.1);
    padding-left: 5px;
}

/* Logs box */
.logs-box {
    flex: 1;
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 5px;
    height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Observation box */
.observation-box {
    height: 300px;
    overflow-y: auto;
}

/* Terminal text inside logs-box */
pre {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.4;
}

/* General glowing scrollbar for any box */
.glow-scrollbar::-webkit-scrollbar {
    width: 10px;
}

.glow-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.55);
    border-radius: 5px;
}

.glow-scrollbar::-webkit-scrollbar-thumb {
    background: #00ff9f;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 0 0 5px #00ff9f;
}

.glow-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #0f0;
}

/* Firefox support */
.glow-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #00ff9f rgba(0,0,0,0.55);
}