/* --- 1. Global & Base Styles --- */
body {
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><rect x="0" y="0" width="16" height="16" fill="%2300ff00" /></svg>') 8 8, text;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.threat-critical {
    border: 5px solid red;
    animation: pulse-border 1s infinite;
}

h1 {
    color: red;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px red;
    animation: flicker 2s infinite alternate;
    position: relative;
    z-index: 10;
    text-transform: uppercase;
}

/* --- 2. Shared Components & Effects --- */

/* Video Splash Screen */
#video-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000000; /* Aangepast naar hogere waarde voor de fix */
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1.5s ease-out;
    overflow: hidden;
}

#intro-video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    width: auto;
    opacity: 0.4;
    z-index: -1;
}

.splash-content {
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-content p {
    color: lime;
    font-size: 1.5em;
    animation: flicker 1.5s infinite;
}
.garbled-text {
    font-size: 1.2em;
    color: #00ff00;
    margin-bottom: 10px;
    animation: static-flicker 0.1s infinite; /* Rapid flicker for garbled text */
}

.button-container {
    margin-top: 20px;
    height: 55px;
}

.splash-content button {
    background: transparent;
    border: 2px solid red;
    color: red;
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.splash-content button:hover {
    background-color: red;
    color: black;
    text-shadow: none;
}

/* Countdown Timer */
#countdown-timer {
    color: red;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 8px red;
    font-weight: bold;
    z-index: 20;
    position: relative;
}

/* Scan Lines Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent 0 1px, rgba(0, 255, 0, 0.05) 1px 2px);
    pointer-events: none;
    z-index: 1000;
}

/* ASCII Background - Falling Rain */
.ascii-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    font-size: 0.8em;
    line-height: 1;
    color: rgba(0, 255, 0, 0.3);
    pointer-events: none;
    opacity: 0.6;
}

.ascii-line {
    position: absolute;
    white-space: nowrap;
    animation: ascii-fall linear infinite;
	color: rgba(0, 255, 0, 0.3);
}

.ascii-glitch {
    animation: ascii-fall linear infinite, glitch-minor 0.5s infinite alternate;
}

.ascii-red-flash {
    animation: ascii-fall linear infinite, flash-red-quick 0.2s linear infinite;
}

/* Main Navigation */
nav {
    background-color: #111;
    padding: 10px;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 10000;
    border-top: 1px solid #00ff00;
    border-bottom: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

nav a {
    color: lime;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover, nav a.active-nav {
    color: red;
    text-shadow: 0 0 8px red, 0 0 15px red;
}

/* Back Link */
.back-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: #ff4444;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid #ff4444;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 10;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.back-link:hover {
    background-color: #ff4444;
    color: black;
    text-shadow: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 2em;
    color: lime;
    z-index: 99999;
    opacity: 0;
    transition: opacity 1s ease-out;
    pointer-events: none;
}

.loading-overlay.static-overlay {
    pointer-events: auto;
    opacity: 1;
}

.loading-text {
    border-right: 2px solid lime;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(20, end) forwards, blink-caret 0.75s step-end infinite;
    margin-bottom: 1rem;
}

.progress-indicator {
    width: 0%;
    height: 5px;
    background-color: lime;
    margin-top: 10px;
    transition: width 0.5s ease-out, background-color 0.5s ease;
}

.loading-overlay.static-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAFUlEQVQImWNkZGTk/f//PwMmAAAZCQgACh4d+QAAAABJRU5ErkJggg==') repeat;
    opacity: 0.1;
    animation: scanlines 0.5s infinite steps(2), distortion 0.2s infinite alternate;
}

/* Central Container (for list.html & submit.html) */
.container {
    max-width: 900px;
    margin: 2rem auto;
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    position: relative;
    z-index: 10;
    flex-grow: 1;
}

/* --- 3. Animations & Keyframes --- */
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: #00ff00; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ascii-fall {
    from { transform: translateY(-100%); }
    to { transform: translateY(100vh); }
}
@keyframes glitch { 0% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); } 100% { transform: translate(0); } }
.glitch-effect { animation: glitch 1.5s infinite; }
.glitch-effect-quick { animation: glitch 0.3s forwards; }

@keyframes glitch-heavy {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    10% { transform: translate(-5px, 5px); filter: hue-rotate(90deg); }
    20% { transform: translate(-5px, -5px); }
    30% { transform: translate(5px, 5px); filter: hue-rotate(180deg); }
    40% { transform: translate(5px, -5px); }
    50% { transform: translate(-5px, 5px); filter: hue-rotate(270deg); }
    60% { transform: translate(-5px, -5px); }
    70% { transform: translate(5px, 5px); filter: hue-rotate(0deg); }
    80% { transform: translate(5px, -5px); }
    90% { transform: translate(-5px, 5px); }
    100% { transform: translate(0); }
}

@keyframes glitch-minor {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(2px); opacity: 0.8; }
    50% { transform: translateX(-2px); opacity: 0.6; }
    75% { transform: translateX(1px); opacity: 0.9; }
}

@keyframes flash-red-quick {
    0%, 100% { color: rgba(0, 255, 0, 0.3); }
    50% { color: red; }
}

@keyframes flicker { 0%, 100% { text-shadow: 0 0 5px red, 0 0 15px red; opacity: 1; } 20%, 80% { text-shadow: 0 0 8px red, 0 0 20px red; opacity: 0.95; } 40%, 60% { text-shadow: 0 0 3px red, 0 0 10px red; opacity: 1; } }
@keyframes pulse-red { 0% { text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; } 50% { text-shadow: 0 0 10px #ff4d4d, 0 0 20px #ff4d4d; } 100% { text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; } }
@keyframes pulse-border { 0% { border-color: red; } 50% { border-color: #ff5e5e; } 100% { border-color: red; } }

@keyframes static-flicker {
    0%, 100% { opacity: 1; filter: blur(0px); }
    50% { opacity: 0.8; filter: blur(0.5px); }
}
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}
@keyframes distortion {
    0%, 100% { transform: skewX(0deg); }
    25% { transform: skewX(0.5deg); }
    75% { transform: skewX(-0.5deg); }
}
@keyframes heartbeat-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
@keyframes flash-red {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 0, 0, 0.5); }
}
@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes text-shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-1px, -1px); }
    50% { transform: translate(1px, 1px); }
    75% { transform: translate(-1px, 1px); }
}
.text-shake { animation: text-shake 0.2s infinite alternate; }
.text-shake-quick { animation: text-shake 0.1s infinite alternate; }

@keyframes text-scramble-animation {
    0%, 100% { opacity: 1; filter: blur(0px); }
    10%, 30%, 50%, 70%, 90% { opacity: 0.5; filter: blur(1px); }
}

.flickering-text-small {
    font-size: 0.9em;
    color: red;
    animation: flicker 1s infinite alternate;
}
.flickering-text-red {
    animation: flicker 1s infinite alternate;
    color: red;
}
.flicker-text-yellow {
    animation: flicker 1s infinite alternate;
    color: yellow;
}

.pulse-image {
    animation: heartbeat-pulse 2s infinite ease-in-out;
}
.flash-red {
    animation: flash-red 0.5s 1;
}
.flash-background-red {
    animation: flash-red 0.3s 1;
}

/* --- 4. Page-Specific Styles --- */

/* index.html - Console */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media(min-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }
    .main-grid-full-width {
        grid-column: 1 / -1;
    }
}

.console-output { white-space: pre-wrap; line-height: 1.5; font-size: 1.2em; position: relative; z-index: 10; height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #00ff00 #222; background: #050505; border: 1px solid #333; padding: 1rem; }
.console-output::-webkit-scrollbar { width: 8px; }
.console-output::-webkit-scrollbar-track { background: #222; }
.console-output::-webkit-scrollbar-thumb { background-color: #00ff00; border-radius: 4px; border: 2px solid #222; }
.prompt-container { display: none; justify-content: center; align-items: center; margin-top: 1rem; position: relative; z-index: 10; border: 1px solid #333; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.prompt-container.prompt-success { border-color: lime; box-shadow: 0 0 8px lime; }
.prompt-container.prompt-error { border-color: red; box-shadow: 0 0 8px red; animation: flicker 0.3s forwards; }

.prompt-prefix { color: #00ff00; font-size: 1.2em; margin-right: 5px; }
.command-input { background-color: transparent; border: none; color: #00ff00; font-family: 'Courier New', monospace; font-size: 1.2em; outline: none; caret-color: #00ff00; width: 80%; }
.console-cursor { animation: blink-caret 0.75s step-end infinite; display: inline-block; width: 0.7em; }
.kbo-section { background-color: #111; border: 1px solid red; padding: 1.5rem; display: none; opacity: 0; animation: fadeIn 1s forwards; position: relative; z-index: 10; }
.kbo-section h2 { color: red; margin-top: 0; margin-bottom: 1rem; }
.kbo-details h2 { color: lime; text-align: center; margin-top: 0; margin-bottom: 1rem; border-bottom: 1px solid rgba(0, 255, 0, 0.3); padding-bottom: 0.5rem; }
.kbo-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.kbo-table tr td { padding: 0.5rem; border: 1px solid #00ff00; color: #00ff00; text-align: left; }
.kbo-table tr td:first-child { font-weight: bold; width: 35%; color: #00cc00; }
.kbo-table .highlight { color: red; font-weight: bold; }
.kbo-table small { font-size: 0.8em; color: #888; }
.redacted-kbo {
    animation: static-flicker 0.1s infinite;
}
.redacted-kbo:hover {
    animation: none;
    background-color: transparent;
    color: lime;
}

.news-summary-section { background-color: #111; border: 1px solid #00ff00; padding: 1rem 2rem; border-radius: 5px; color: #00ff00; font-family: 'Courier New', monospace; display: none; position: relative; z-index: 10; }
.news-summary-item { padding: 1rem 0; border-bottom: 1px dashed rgba(0, 255, 0, 0.2); margin-bottom: 1rem; }
.news-summary-item:last-child { border-bottom: none; margin-bottom: 0; }
.news-summary-item h3 { color: #00cc00; margin-top: 0; margin-bottom: 0.5rem; font-size: 1.1em; }
.news-summary-item p { font-size: 0.9em; line-height: 1.4; color: #00ff00; }
.news-summary-item .news-date { font-size: 0.75em; color: #666; margin-bottom: 0.5rem; display: block; }
.news-summary-item a { color: red; text-decoration: none; font-weight: bold; }
.news-summary-item a:hover { text-decoration: underline; }
.news-tag {
    background-color: red;
    color: black;
    padding: 2px 5px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 10px;
    animation: flicker 1s infinite alternate;
}
/* list.html - Debt List (Updated for consistency) */
#debt-table {
    margin: auto;
    border-collapse: collapse;
    width: 100%;
    background-color: #050505;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    margin-top: 1.5rem;
}
#debt-table th, #debt-table td {
    padding: 12px;
    border: 1px solid #004d00;
    color: lime;
}
#debt-table th {
    background-color: #1a1a1a;
    color: red;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#debt-table th:hover {
    background-color: #333;
}
#debt-table tbody tr:nth-child(even) {
    background-color: #0d0d0d;
}
#debt-table tbody tr:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: white;
    transition: background-color 0.2s ease;
}
.total-debt {
    margin-top: 1.5rem;
    font-size: 2em;
    color: #ff4444;
    font-weight: bold;
    animation: pulse-red 1.5s infinite;
    text-align: right;
}
.status-icon {
    font-size: 1.5em;
    text-shadow: 0 0 5px;
}
.status-icon.verified {
    color: lime;
}
.status-icon.unverified {
    color: #ffc107;
    animation: flicker 1s infinite alternate;
}
.redacted-on-hover {
    transition: all 0.1s;
}
.redacted-on-hover:hover {
    color: lime;
    background-color: transparent;
    text-shadow: none;
}
/* news.html - News Page */
#search, #search-theft {
    width: 60%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid red;
    background-color: #111;
    color: lime;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#search.search-active, #search-theft.search-active {
    border-color: lime;
    box-shadow: 0 0 8px lime;
}

.news-entry { border: 1px solid red; padding: 20px; margin: 20px auto; width: 80%; background-color: #111; text-align: left; position: relative; z-index: 10; overflow: hidden; }
.news-entry::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(transparent 0 1px, rgba(0, 255, 0, 0.02) 1px 2px); pointer-events: none; z-index: 1; }
.news-entry::before {
    content: attr(data-stamp) 'CLASSIFIED';
    position: absolute;
    top: 30px;
    right: -45px;
    font-size: 3em;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.1);
    transform: rotate(-30deg);
    pointer-events: none;
    z-index: 2;
    animation: flicker 3s infinite alternate;
}
.classified-stamp {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
    transform: rotate(5deg);
    z-index: 3;
    animation: pulse-red 2s infinite alternate;
}

.news-title { font-size: 1.5em; color: lime; cursor: pointer; margin-bottom: 0.5em; transition: color 0.3s; }
.news-title::before { content: '► '; margin-right: 10px; color: red; font-size: 0.8em; display: inline-block; transition: transform 0.3s ease; }
.news-entry.open .news-title::before { transform: rotate(90deg); content: '▼ '; }
.news-title:hover { color: #33ff33; }
.news-date { font-size: 0.9em; color: #ff4444; margin-bottom: 1em; }
.news-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; margin-top: 1em; padding-left: 1.5em; border-left: 1px dashed rgba(0, 255, 0, 0.3); }
.news-entry.open .news-content { max-height: 9999px; }
.news-image, .news-video, .news-pdf { max-width: 100%; height: auto; margin-top: 10px; display: block; border: 1px solid #333; }
.news-image {
    filter: brightness(0.8) contrast(1.2);
    animation: scanlines 0.5s infinite steps(2), distortion 0.2s infinite alternate;
}
.news-video {
    background-color: black;
    border: 1px solid lime;
    position: relative;
    animation: scanlines 0.5s infinite steps(2), distortion 0.2s infinite alternate;
}
.news-video::before {
    content: 'LIVE FEED - ANALYZING...';
    position: absolute;
    top: 5px;
    left: 5px;
    color: lime;
    font-size: 0.7em;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 5px;
    z-index: 10;
}
.news-pdf { color: lime; text-decoration: none; border: 1px solid lime; padding: 5px; display: inline-block; }
.news-pdf:hover { background-color: lime; color: black; }
.news-entry-redacted { border-color: #550000; background-color: #100000; cursor: not-allowed; transition: all 0.5s ease; position: relative; }
.news-entry.news-entry-redacted { overflow: visible; }
.news-entry-redacted:hover { border-color: red; box-shadow: 0 0 15px red; }
.news-entry-redacted .news-title { color: #ff4444; text-shadow: 0 0 5px red; cursor: not-allowed; }
.news-entry-redacted .news-title::before { content: '█ '; color: #ff4444; }
.redacted-word { white-space: nowrap; }
.redacted-text {
    color: transparent;
    background-color: black;
    user-select: none;
    animation: static-flicker 0.1s infinite;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.redacted-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #000 0 2px, rgba(0, 0, 0, 0.8) 2px 4px);
    animation: static-flicker 0.1s infinite;
    z-index: 1;
}

@keyframes reveal-redact {
    0%, 98% { opacity: 1; }
    99% { opacity: 0; }
    100% { opacity: 1; }
}

.news-entry-redacted[data-tooltip]:hover::before { content: attr(data-tooltip); position: absolute; bottom: 105%; left: 50%; transform: translateX(-50%); background-color: red; color: black; padding: 5px 10px; border-radius: 3px; font-family: Arial, sans-serif; font-size: 0.9em; white-space: nowrap; z-index: 100; opacity: 1; visibility: visible; transition: opacity 0.3s; animation: static-flicker 0.2s infinite alternate; }
.news-entry-redacted[data-tooltip]::before { content: ''; position: absolute; opacity: 0; visibility: hidden; transition: opacity 0.3s; }

/* status.html - Status Page */
.status-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 2rem auto; position: relative; z-index: 10; }
.status-card { background-color: #111; border: 1px solid #00ff00; padding: 1.5rem; }
.status-card h2 { color: red; margin-top: 0; margin-bottom: 1.5rem; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 0.5rem; }
.status-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 1.1em; }
.status-light { width: 15px; height: 15px; border-radius: 50%; margin-right: 10px; display: inline-block; box-shadow: 0 0 10px; }
.status-light.online { background-color: lime; color: lime; box-shadow: 0 0 5px lime; animation: status-light-flicker 2s infinite alternate; }
.status-light.offline { background-color: red; color: red; box-shadow: 0 0 5px red; }
.status-light.warning { background-color: yellow; color: yellow; box-shadow: 0 0 5px yellow; }

@keyframes status-light-flicker {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px lime; }
    50% { opacity: 0.8; box-shadow: 0 0 2px lime; }
}

.status-light.status-flicker {
    animation: none;
    background-color: yellow;
    box-shadow: 0 0 5px yellow;
}
.status-light.status-flicker.error {
    background-color: red;
    box-shadow: 0 0 5px red;
}

.threat-high-pulse {
    animation: pulse-border 0.5s infinite, flicker 0.5s infinite;
}

.progress-bar-container { width: 100%; background-color: #222; border: 1px solid #00ff00; padding: 2px; }
.progress-bar-fill { height: 20px; background-color: lime; transition: width 0.5s ease-in-out; }
.threat-gauge { position: relative; width: 100%; height: 25px; background: linear-gradient(to right, lime, yellow, orange, red); border: 1px solid #fff; }
.threat-indicator { position: absolute; top: -5px; width: 4px; height: 35px; background-color: white; box-shadow: 0 0 5px white; transition: left 1s ease-in-out; }
.system-log { height: 250px; background-color: #050505; border: 1px solid #333; padding: 1rem; overflow-y: scroll; font-size: 0.9em; line-height: 1.6; scrollbar-width: thin; scrollbar-color: #00ff00 #222; }
.system-log::-webkit-scrollbar { width: 8px; }
.system-log::-webkit-scrollbar-track { background: #222; }
.system-log::-webkit-scrollbar-thumb { background-color: #00ff00; border-radius: 4px; border: 2px solid #222; }

/* --- 5. Editor Page Override --- */
.editor-body { background-color: #f0f0f0; color: #333; font-family: Arial, sans-serif; cursor: default; }
.editor-body h1, .editor-body h2 { color: #d9534f; text-shadow: none; animation: none; }
.editor-body label { display: block; margin-top: 15px; font-weight: bold; }
.editor-body input[type="text"], .editor-body input[type="date"], .editor-body textarea { width: 100%; padding: 8px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.editor-body button { background-color: #5cb85c; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-top: 20px; }
.editor-body button:hover { background-color: #4cae4c; }
.editor-body pre { background-color: #e7e7e7; border: 1px solid #ccc; padding: 10px; white-space: pre-wrap; word-wrap: break-word; }

/* --- 6. Wall of Shame Specific Styles --- */
.shame-body {
    border: 5px solid red;
    animation: pulse-border 1s infinite;
}

.shame-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    border: 2px solid red;
    background-color: rgba(255, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .shame-container {
        grid-template-columns: 300px 1fr;
    }
}

.mugshot-area {
    text-align: center;
}

.mugshot-frame {
    border: 5px solid #ff4444;
    padding: 10px;
    background-color: #111;
    box-shadow: 0 0 20px red;
}

.mugshot-image {
    width: 100%;
    filter: grayscale(100%) contrast(150%);
    animation: scanlines 0.5s infinite steps(2), distortion 0.2s infinite alternate, pulse-image 2s infinite ease-in-out, flicker 1s infinite alternate;
}

.mugshot-area h2 {
    color: red;
    margin-top: 1rem;
    font-size: 2em;
    text-shadow: 0 0 10px red;
}

.mugshot-area h3 {
    color: lime;
    margin-top: 0.5rem;
    font-size: 1.5em;
    font-family: monospace;
}

.rap-sheet {
    color: #00ff00;
}

.rap-sheet h2 {
    color: red;
    border-bottom: 2px solid red;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rap-sheet ul {
    list-style: none;
    padding: 0;
}

.rap-sheet li {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1em;
}

.rap-sheet li strong {
    color: #ff4444;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.judgement-text {
    margin-top: 2rem;
    color: red;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    animation: flicker 1s infinite alternate;
}

/* --- 7. Header Logo --- */
.logo-container {
    text-align: center;
    padding: 1rem 0;
    position: relative;
    z-index: 20;
}

#header-logo {
    max-width: 90%;
    height: auto;
    max-height: 120px;
    filter: drop-shadow(0 0 5px #00ff00) drop-shadow(0 0 15px #00ff00);
}


/* --- 8. Community Feed --- */
.community-feed-section {
    background-color: #111;
    border: 1px solid red;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.community-feed-section h2 {
    color: red;
    font-size: 1.2em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}

.community-feed-box {
    flex-grow: 1;
    background-color: #080808;
    border: 1px solid #222;
    padding: 10px;
    overflow-y: scroll;
    font-size: 0.9em;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: red #222;
}

.community-feed-box::-webkit-scrollbar {
    width: 8px;
}

.community-feed-box::-webkit-scrollbar-track {
    background: #111;
}

.community-feed-box::-webkit-scrollbar-thumb {
    background-color: red;
    border-radius: 4px;
}

.feed-message {
    margin-bottom: 8px;
    animation: fadeIn 0.5s ease-in;
}

.feed-message .timestamp {
    color: #666;
    margin-right: 10px;
}

.feed-message .username {
    color: #ff4444;
    font-weight: bold;
}

.feed-message .text {
    color: #00ff00;
}
.redacted-message {
    color: transparent;
    background-color: black;
    user-select: none;
    animation: static-flicker 0.1s infinite;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.redacted-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #000 0 2px, rgba(0, 0, 0, 0.8) 2px 4px);
    animation: static-flicker 0.1s infinite;
    z-index: 1;
}

#claim-process {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    color: #ffc107;
}
#claim-process h3 {
    margin-top: 0;
    color: #ffc107;
}
#claim-process ol {
    padding-left: 20px;
}
#claim-process li {
    margin-bottom: 0.5rem;
}

.rich-text-editor {
    border: 2px solid #00ff00;
    padding: 10px;
    min-height: 180px;
    background-color: rgba(0, 255, 0, 0.05);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    overflow-y: auto;
    resize: vertical;
}

.rich-text-editor:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #aaa;
    pointer-events: none;
    display: block;
}

/* Modal Styling (General) */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.is-active {
    opacity: 1;
}

.modal-content {
    background-color: #111;
    margin: auto;
    padding: 30px;
    border: 2px solid red;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    position: relative;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal.is-active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: red;
    margin-top: 0;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px red;
}

.modal-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-content strong {
    color: #ff4444;
}

.close-button {
    color: red;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 15px;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px red;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-shadow: 0 0 10px #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-description-content {
    background-color: rgba(0, 255, 0, 0.05);
    border: 1px dashed #00ff00;
    padding: 15px;
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
    color: #00ff00;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #222;
}

.modal-description-content::-webkit-scrollbar {
    width: 8px;
}

.modal-description-content::-webkit-scrollbar-track {
    background: #222;
}

.modal-description-content::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border-radius: 4px;
    border: 2px solid #222;
}

/* Clickable Table Row */
.debt-row-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.debt-row-clickable:hover {
    background-color: rgba(255, 0, 0, 0.2);
    transform: scale(1.005);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}
.debt-row-clickable.glitch-effect-quick {
    animation: glitch 0.3s forwards;
}

/* Theft Page Specific Styles */
.theft-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.theft-case-card {
    background-color: #1a0505;
    border: 2px solid red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.theft-case-card:hover {
    background-color: #2a0a0a;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
    transform: translateY(-5px);
}

.theft-case-header {
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 0, 0, 0.3);
    padding-bottom: 0.8rem;
    position: relative;
}

.theft-status-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    padding: 3px 8px;
    font-size: 0.7em;
    font-weight: bold;
    transform: rotate(5deg);
    transform-origin: top right;
    animation: pulse-red 1.5s infinite alternate;
}

.theft-title {
    font-size: 1.3em;
    color: #ff4444;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px #ff4444;
}

.theft-date {
    font-size: 0.8em;
    color: #ff8888;
    display: block;
}

.theft-case-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 255, 0, 0.1);
    color: #00ff00;
    position: relative;
}

.theft-case-card.open .theft-case-content {
    max-height: 1000px;
    transition: max-height 0.8s ease-in;
}

.theft-case-content p {
    margin-bottom: 1em;
}

.theft-case-content strong {
    color: #ffc107;
}

.theft-media {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    display: block;
    border: 1px solid red;
    filter: brightness(0.9) contrast(1.1);
    animation: scanlines 0.5s infinite steps(2), distortion 0.2s infinite alternate;
    cursor: pointer;
}

.theft-video {
    background-color: black;
    border-color: red;
}
.theft-video::before {
    content: 'INTERCEPTED FEED - FRAGMENTED...';
    position: absolute;
    top: 5px;
    left: 5px;
    color: yellow;
    font-size: 0.7em;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 5px;
    z-index: 10;
}

.theft-pdf {
    color: red;
    text-decoration: none;
    border: 1px solid red;
    padding: 5px;
    display: inline-block;
}
.theft-pdf:hover {
    background-color: red;
    color: black;
}

.theft-notes {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(0, 255, 0, 0.1);
    padding-top: 0.5rem;
}

.blurred-content {
    filter: blur(5px);
    pointer-events: none;
}

.theft-case-card .case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: red;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 0 10px red;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.theft-case-card.theft-archived .case-overlay,
.theft-case-card.theft-redacted .case-overlay,
.theft-case-card.theft-confidential .case-overlay {
    opacity: 1;
}

.theft-case-card.theft-confidential .case-overlay {
    background-color: rgba(255, 165, 0, 0.4);
    color: #ffc107;
    font-size: 1.8em;
    text-shadow: 0 0 8px #ffc107;
    animation: flicker 1s infinite alternate;
}
.theft-case-card.theft-redacted .case-overlay {
    background-color: rgba(128, 0, 0, 0.7);
    color: #ff0000;
    font-size: 2.2em;
    text-shadow: 0 0 12px #ff0000;
    animation: glitch 1s infinite alternate;
}

.modal-content.image-modal-content {
    background-color: #000;
    padding: 10px;
    max-width: 90vw;
    max-height: 90vh;
    border: 2px solid lime;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#enlarged-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    filter: brightness(0.9) contrast(1.2);
    animation: scanlines 0.5s infinite steps(2), distortion 0.2s infinite alternate;
}

.modal-content.pdf-modal-content {
    background-color: #000;
    padding: 20px;
    max-width: 80vw;
    max-height: 90vh;
    border: 2px solid #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
    display: flex;
    flex-direction: column;
}

.pdf-viewer-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #ffc107;
    text-align: center;
}

.pdf-viewer-header h3 {
    color: #ffc107;
    margin: 0;
    font-size: 1.2em;
    text-shadow: 0 0 5px #ffc107;
}

.pdf-viewer-header .pdf-status-message {
    font-size: 0.9em;
    color: lime;
    animation: static-flicker 0.5s infinite alternate;
}

#pdf-iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: 1px solid lime;
    background-color: #111;
}
/* --- 9. Evidence Locker Page Styles --- */
.evidence-body {
    border: 3px solid #ffc107;
}

.file-browser {
    max-width: 800px;
    margin: 2rem auto;
    background-color: #1a1a1a;
    border: 2px solid #ffc107;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    color: lime;
}

.folder {
    padding: 10px;
    cursor: pointer;
    border-left: 3px solid #ffc107;
    margin-bottom: 5px;
    background-color: #222;
}
.folder:hover {
    background-color: #333;
}
.folder-icon { margin-right: 10px; }
.folder-name { font-weight: bold; }

.folder-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding-left: 20px;
    margin-top: 5px;
}
.folder.open .folder-content {
    max-height: 500px;
}

.file {
    display: block;
    padding: 5px 10px;
    margin-left: 20px;
    border-bottom: 1px dashed #444;
}
.file:last-child { border-bottom: none; }
.file-icon { margin-right: 10px; }

.file-status {
    float: right;
    font-weight: bold;
}
.file-accessible { cursor: pointer; }
.file-accessible:hover { background-color: rgba(0, 255, 0, 0.2); }
.file-accessible .file-status { color: lime; }

.file-encrypted .file-status { color: orange; animation: flicker 2s infinite alternate; }
.file-denied .file-status { color: red; animation: flicker 1s infinite alternate; }


/* --- 10. Network Page Styles --- */
.network-body {
    border: 3px solid #ff4444;
}
.network-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 60vh;
    margin: 2rem auto;
    background-color: rgba(20,0,0,0.3);
    border: 1px solid #333;
}
.node {
    position: absolute;
    background-color: #111;
    border: 2px solid red;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 15px red;
    transition: all 0.3s ease;
    cursor: help;
}
.node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #ff4444;
}
.node small {
    display: block;
    font-size: 0.7em;
    color: #ffc107;
    margin-top: 5px;
    animation: text-shake-quick 1s infinite alternate;
}
.central-node {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    background-color: red;
    color: black;
    font-weight: bold;
}
#node-supplier { top: 40%; left: 20%; }
#node-accomplice { top: 40%; left: 70%; }
#node-shell { top: 70%; left: 45%; }
#node-third-party { top: 75%; left: 15%; }
#node-offshore { top: 75%; left: 75%; }

.connector-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}
.connector-line line {
    stroke: rgba(255, 0, 0, 0.5);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dash 1s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -10; } }


/* --- 11. New Component Styles --- */
.manipulator-profile {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px dashed red;
}
.manipulator-profile h2 {
    text-align: center;
}
.manipulator-profile ul {
    list-style-type: '→ ';
    color: #ffc107;
    padding-left: 20px;
}
.manipulator-profile li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

#alert-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.system-alert {
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border: 1px solid white;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 0 10px red;
    opacity: 1;
    transition: opacity 1s ease-out;
    animation: text-shake 0.2s 3;
}

/* --- 12. Live Intel Ticker --- */
.intel-ticker-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a0000;
    border-top: 1px solid red;
    padding: 5px 0;
    z-index: 99998;
    overflow: hidden;
    white-space: nowrap;
}

.intel-ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 120s linear infinite;
    color: #ff4444;
    font-size: 0.9em;
}

.intel-ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: #ffc107;
}

.intel-ticker-item::before {
    content: '[LIVE INTEL] ';
    color: red;
    font-weight: bold;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- 13. Glitch Overlay Effect --- */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAFUlEQVQImWNkZGTk/f//PwMmAAAZCQgACh4d+QAAAABJRU5ErkJggg==') repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 999999;
    display: none;
    animation: glitch-flash 0.2s steps(2, end);
}

.glitch-overlay.active {
    display: block;
    opacity: 1;
}

@keyframes glitch-flash {
    0% { opacity: 0.5; transform: skewX(10deg); }
    25% { opacity: 0.2; transform: skewX(-10deg); }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* --- Rap Sheet Animation (from shame.html) --- */
.rap-sheet-item {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.rap-sheet-item.visible {
    opacity: 1;
}
/* --- Unverified Row Styling --- */
.unverified-row {
    background-color: rgba(255, 0, 0, 0.15);
    color: #ffaaaa;
    cursor: not-allowed;
}

.unverified-row:hover {
    background-color: rgba(255, 0, 0, 0.25);
}