:root { --cs-red: #d32f2f; --cs-dark-red: #4a0000; --bg: #0a0a0a; --sidebar-bg: #111; }

body { 
    background-color: var(--bg); 
    color: var(--cs-red); 
    font-family: 'Courier New', monospace; 
    margin: 0; 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
    text-shadow: 2px 2px #000; 
}

/* SIDEBAR & NAVIGATION */
#sidebar { width: 260px; border-right: 3px solid var(--cs-red); display: flex; flex-direction: column; padding: 20px; background: var(--sidebar-bg); flex-shrink: 0; }
#sidebar h3 { border-bottom: 2px solid var(--cs-red); padding-bottom: 10px; margin-top: 0; }
.nav-button { background: transparent; color: var(--cs-red); border: 1px solid var(--cs-red); padding: 12px; margin-bottom: 15px; cursor: pointer; text-align: left; font-family: 'Courier New', monospace; font-weight: bold; text-transform: uppercase; transition: 0.2s; }
.nav-button:hover, .nav-button.active { background: var(--cs-red); color: #000; }

/* MAIN CONTENT AREA */
#main-content { flex-grow: 1; padding: 40px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.content-section { display: none; width: 100%; max-width: 950px; }
.content-section.active { display: block; }
.border-box { border: 2px solid var(--cs-red); padding: 25px; background: rgba(20,0,0,0.7); margin-top: 20px; }

/* CRIMINAL DATABASE GRID */
.db-container { display: flex; gap: 20px; height: 580px; border: 1px solid var(--cs-red); padding: 15px; background: #000; }
#db-list { width: 260px; border-right: 1px solid var(--cs-red); overflow-y: auto; padding-right: 15px; }
#db-display { flex-grow: 1; padding-left: 20px; text-align: left; }
.photo-frame { width: 180px; height: 220px; border: 2px solid var(--cs-red); background: #111; margin-bottom: 15px; overflow: hidden; flex-shrink: 0; }
#dos-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(0.9); }

/* SPECIALTY ELEMENTS */
.cs-select { background: #000; color: var(--cs-red); border: 1px solid var(--cs-red); padding: 10px; width: 100%; font-family: 'Courier New', monospace; margin-bottom: 15px; }
.glitch-btn { margin-top: auto; border-color: #330000; color: #4a0000; font-size: 0.8rem; }
.glitch-btn:hover { color: #ff0000; border-color: #ff0000; animation: glitch 0.3s infinite; }

/* ANIMATIONS */
@keyframes glitch { 0% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 100% { transform: translate(0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 5px #f00; } 50% { box-shadow: 0 0 20px #f00, inset 0 0 10px #500; } 100% { box-shadow: 0 0 5px #f00; } }
@keyframes screen-shake { 0% { transform: translate(0,0); } 25% { transform: translate(5px, -5px); } 50% { transform: translate(-5px, 5px); } 75% { transform: translate(5px, 5px); } 100% { transform: translate(0,0); } }

.warning-flash { animation: pulse-red 0.5s infinite; border: 3px solid red !important; }
.self-destruct-active { animation: screen-shake 0.1s infinite, pulse-red 0.2s infinite; background: #500 !important; color: white !important; }

/* HACKER CONSOLE STYLES */
.hacking-text { font-family: 'Consolas', monospace; color: #0f0; text-shadow: none !important; font-size: 0.9rem; line-height: 1.2; text-align: left; background: #000; padding: 10px; border: 1px solid #333; margin-top: 10px; }
.static-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    /* Ensure the path exactly matches your folder structure */
    background: #000 url('assets/cracked_screen.png') no-repeat center center;
    background-size: cover;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* NEWS TICKER - STANDARD CRAWL SPEED */
.ticker-wrap { 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    height: 35px; 
    background: rgba(20,0,0,0.9); 
    border-top: 2px solid var(--cs-red); 
    overflow: hidden; 
    line-height: 35px; 
    z-index: 1000;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 450s linear infinite; 
    font-weight: bold;
    padding-right: 50px; 
}

@keyframes scroll {
    0% { transform: translateX(100vw); } 
    100% { transform: translateX(-100%); } 
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    body { flex-direction: column; height: 100dvh; }
    #sidebar { width: 100%; height: auto; border-right: none; border-bottom: 2px solid var(--cs-red); padding: 10px; box-sizing: border-box; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    #sidebar h3 { grid-column: span 2; margin-bottom: 5px; text-align: center; font-size: 1rem; }
    .nav-button { margin-bottom: 0; text-align: center; padding: 8px; font-size: 0.7rem; }
    #main-content { padding: 15px; padding-bottom: 60px; }
}