:root {
    --bg-color: #0d0211; 
    --text-color: #00ff41; 
    --border-color: #00ff41;
    --shadow-color: rgba(0, 255, 65, 0.2);
}

[data-theme="light"] {
    --bg-color: #e0d7ff; 
    --text-color: blue;
    --border-color: blue;
    --shadow-color: rgba(0, 0, 255, 0.1);
}

body { font-family: monospace; background-color: var(--bg-color); color: var(--text-color); margin: 0; overflow-x: hidden; }
#matrix-canvas { position: fixed; top: 0; left: 0; z-index: -1; opacity: 0.15; }

/* FIREWALL OVERLAY */
#firewall-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,0,0,0.4) 0%, rgba(0,0,0,0.95) 100%);
    background-image: linear-gradient(rgba(255, 0, 0, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 0, 0, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 20000; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #ff4757; animation: grid-scroll 2s linear infinite;
}

@keyframes grid-scroll {
    from { background-position: 0 0; }
    to { background-position: 0 50px; }
}

.firewall-content h1 { font-size: 3rem; text-shadow: 0 0 20px #ff0000; margin-bottom: 10px; }
#firewall-btn { background: #ff4757; color: white; border: none; padding: 15px 30px; font-weight: bold; cursor: pointer; }

/* OTHER UI ELEMENTS */
.system-dashboard {
    display: flex; gap: 15px; font-size: 0.75rem; padding: 12px;
    border-bottom: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.4);
    justify-content: center;
}

.container { max-width: 800px; margin: 0 auto; padding: 20px; }
.custom-header, .post-card, #post-search, #admin-panel, #custom-alert {
    background: rgba(10, 0, 20, 0.85); border: 2px solid var(--border-color);
    padding: 15px; margin-bottom: 20px; box-shadow: 6px 6px 0px var(--shadow-color);
    text-decoration: none; color: inherit; display: block;
}

.glitch { position: relative; font-weight: bold; }
.glitch:hover::after {
    content: attr(data-text); position: absolute; left: 2px; text-shadow: -1px 0 red;
    top: 0; background: var(--bg-color); clip: rect(0,900px,0,0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim { 0% { clip: rect(20px, 999px, 40px, 0); } 100% { clip: rect(40px, 999px, 60px, 0); } }

input { width: 100%; box-sizing: border-box; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); color: var(--text-color); padding: 12px; margin-bottom: 10px; font-family: monospace; }
button { border: 1px solid var(--border-color); padding: 8px 15px; background: none; color: var(--text-color); font-family: monospace; cursor: pointer; }
button:hover { background: var(--text-color); color: var(--bg-color); }

.destruct-sequence { animation: shake 0.1s infinite, flash 0.2s infinite; }
@keyframes shake { 0% { transform: translate(2px, 2px); } 100% { transform: translate(-2px, -2px); } }
@keyframes flash { 0% { background-color: #000; } 50% { background-color: #ff0000; } 100% { background-color: #000; } }

#custom-alert { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10000; width: 300px; text-align: center; background: #000; }
#alert-btn { margin-top: 15px; width: 100%; background: var(--text-color); color: #000; font-weight: bold; }
