/* Modern Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* --- Palette --- */
    --color-white-alpha: rgba(255, 255, 255, 0.1);

    /* --- Typography --- */
    --text-primary: #eee;
    --text-secondary: #888;

    /* --- Geometry --- */
    --stroke-thin: 1px;
    --stroke-thick: 3px;
    --stroke-shadow: 6px;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.header {
    margin-block-start: 30px;
    text-align: center;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 400;
}

#version {
    font-size: 0.5em;
    color: var(--text-secondary);
    vertical-align: middle;
}

p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.docs-link {
    display: inline-block;
    margin-top: 8px;
    color: #4da6ff; /* Legible blue for dark backgrounds */
    font-size: 0.9rem;
    text-decoration: none;
}

.docs-link:hover {
    text-decoration: underline;
    color: #88ccff;
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    user-select: none;
    margin-top: -15px;
}

.zoom-control input {
    cursor: pointer;
}

.layout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    flex: 1;
    min-height: 0;
    padding: 20px;
}

/* --- SVG Styling --- */

#app-svg {
    width: 100%;
    height: 100%;
    max-height: 75vh;
}

/* Base Interactive Shapes */
[data-action] {
    cursor: pointer;
}

.cube-face {
    stroke: black;
    stroke-width: var(--stroke-thin);
    stroke-linejoin: round;
}

.core-block {
    stroke: var(--color-white-alpha);
    stroke-width: var(--stroke-thin);
}

/* Foreground Overlays (Stacked Strokes Replacement for filters) */
.hover-bg, .hover-fg, .highlight-bg, .highlight-fg {
    fill: none;
    pointer-events: none; /* Allows mouse events to pass through to the shapes below */
    stroke-linejoin: round;
}

.hover-bg, .highlight-bg {
    stroke: black;
    stroke-width: var(--stroke-shadow); /* Creates a high-performance pseudo-shadow */
}

.hover-fg {
    stroke: var(--text-secondary);
    stroke-width: var(--stroke-thick);
}

.highlight-fg {
    stroke: white;
    stroke-width: var(--stroke-thick);
}

/* Tooltip Overlay */
#pointer-display {
    background-color: rgba(0, 0, 0, 0.60);
    border: var(--stroke-thin) solid #333;
    color: white;
    border-radius: 4px;
    padding: 6px 10px;
    position: fixed;
    pointer-events: none; /* Prevents the tooltip from blocking hover events */
    display: none;
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    z-index: 100;
    transform: translate(15px, 15px); /* Offset from the exact cursor coordinate calculated in JS */
}
