/* =========================================================
   DIONAEA // DJANGO ADMIN RETRO GRID & CRT SCANLINES
   ========================================================= */

/* =========================================================
   00. DESIGN SYSTEM & CSS VARIABLES
   ========================================================= */
:root {
    --void-black: #050708;
    --gunmetal-dark: #121517;
    --gunmetal-light: #1A1E21;
    --silver-titanium: #EAECEE;
    --silver-matte: #9CA3A9;
    --silver-dark: #4B5258;
    --green-matrix: #00FF41;
    --green-neon: #39FF14;
    --green-toxic: #008F11;
    --glow-green: 0 0 10px rgba(57, 255, 20, 0.4), 0 0 20px rgba(0, 255, 65, 0.2);
    --shadow-plate: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   01. CUSTOM SCROLLBAR
   ========================================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--silver-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-matrix);
}

/* =========================================================
   02. GLOBAL RETRO GRID (Background Overlay)
   ========================================================= */
#main::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background-image: linear-gradient(
            rgba(156, 163, 169, 0.08) 1px,
            transparent 1px
    ),
    linear-gradient(
            90deg,
            rgba(156, 163, 169, 0.08) 1px,
            transparent 1px
    );

    background-size: 30px 30px;
}

/* =========================================================
   03. ANIMATIONS
   ========================================================= */
@keyframes scrollCRT {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* =========================================================
   04. SOLID MODULES & CONTAINERS
   ========================================================= */
#content-main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.module,
object,
div.results,
#changelist {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, var(--gunmetal-dark), var(--void-black));
    border: 1px solid var(--silver-dark);
    box-shadow: var(--shadow-plate);
    margin-bottom: 30px !important;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}

/* Emperor Crown Accent Line Top */
.module::before,
div.results::before,
#changelist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: var(--silver-dark);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 2;
}

/* =========================================================
   05. CRT SCANLINES (Global Scanline Overlay)
   ========================================================= */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;

    background: repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            rgba(0, 0, 0, 0.08) 1px,
            rgba(0, 0, 0, 0.08) 3px
    );
    opacity: 0.55;
    animation: scrollCRT 0.2s linear infinite;
}