:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --accent-primary: #00ff9d; /* Pseudo Green */
    --accent-secondary: #bd00ff; /* Deep Mind Purple */
    --accent-error: #ff003c;
    --font-mono: 'Courier New', Courier, monospace;
    --font-serif: 'Times New Roman', Times, serif;
    --font-std: 'Helvetica', 'Arial', sans-serif; /* For "Official" forms */
}

* {
    box-sizing: border-box;
    cursor: crosshair; /* The user is always searching/targeting */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Typography & Glitch Effects */
h1, h2, h3 {
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    mix-blend-mode: exclusion;
}

.glitch {
    position: relative;
    color: var(--text-main);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-error);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(80px, 9999px, 100px, 0); }
    40% { clip: rect(10px, 9999px, 80px, 0); }
    60% { clip: rect(5px, 9999px, 20px, 0); }
    80% { clip: rect(60px, 9999px, 90px, 0); }
    100% { clip: rect(20px, 9999px, 60px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 90px, 0); }
    20% { clip: rect(10px, 9999px, 30px, 0); }
    40% { clip: rect(80px, 9999px, 100px, 0); }
    60% { clip: rect(15px, 9999px, 40px, 0); }
    80% { clip: rect(10px, 9999px, 50px, 0); }
    100% { clip: rect(40px, 9999px, 70px, 0); }
}

/* UI Elements */
.container {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

button.dose-btn {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button.dose-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Background Noise/Grid */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.6;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.05;
    z-index: 998;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Utilities */
.hidden {
    opacity: 0;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; filter: blur(5px); }
    to { opacity: 1; filter: blur(0); }
}

/* --- BUREAUCRACY OVERHAUL --- */

.redacted {
    background-color: #000;
    color: #000;
    padding: 0 4px;
    font-size: 0.9em;
    cursor: help;
    transition: color 0.3s ease;
    user-select: none;
}

.redacted:hover {
    color: #444; /* Slight visibility on hover */
}

/* For paper documents where redaction is ink */
.paper-mode .redacted {
    background-color: #111;
    color: #111;
}

.stamp {
    position: absolute;
    border: 5px solid rgba(255, 0, 60, 0.5);
    color: rgba(255, 0, 60, 0.6);
    padding: 1rem 2rem;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(-15deg);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='0.7'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: multiply;
}

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 15vw;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.security-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    border-bottom: 2px solid #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #666;
    z-index: 1000;
}

.security-header .status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 5px var(--accent-primary);
}

.paper-texture {
    background-color: #f4f4f4;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    color: #111;
}

/* Force overrides for paper view */
.paper-mode {
    background: #e0e0e0 !important;
    color: #111 !important;
}

