@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600&display=swap');

:root {
    /* Theme Colors */
    --bg-color: #0d0e15;       /* Void Black/Blue */
    --sidebar-bg: #08080c;     /* Near Black */
    --text-main: #a9b1d6;      /* Soft White/Grey */
    --text-accent: #7aa2f7;    /* Cyan */
    --text-green: #9ece6a;     /* Terminal Green */
    --text-purple: #bb9af7;    /* Purple */
    --border-color: #2f334d;   /* Dark Blue/Grey Border */
    --cursor-color: #c0caf5;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Fira Code', monospace;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background: var(--border-color); 
    border-radius: 4px;
}

/* CRT Flicker Effect */
@keyframes flicker {
    0% { opacity: 0.97; }
    100% { opacity: 1; }
}
.crt-effect {
    animation: flicker 0.15s infinite;
}

/* Blinking Cursor Animation */
.cursor-blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Utility Classes */
.border-box {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
}

.tui-title {
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: var(--bg-color);
    padding: 0 5px;
    color: var(--text-accent);
    font-size: 0.9rem;
    z-index: 20;
    line-height: 1;
}

.sidebar-box .tui-title {
    background-color: var(--sidebar-bg);
}
.main-box .tui-title {
    background-color: var(--bg-color);
}

/* Sidebar Navigation */
.sidebar-item {
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.sidebar-item:hover, .sidebar-item.active {
    background-color: rgba(65, 72, 104, 0.2);
    color: var(--text-main);
    border-left: 2px solid var(--text-purple);
}
.sidebar-item.active {
    color: var(--text-green);
}

.tree-line {
    color: var(--border-color);
}

/* Gradient Text Style for FlyWithGui */
.flywithgui-gradient {
    background: linear-gradient(to right, #a5b4fc, #f472b6, #fb923c, #c4b5fd); /* Light Blue -> Pink -> Orange -> Purple */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Classified Redaction Style */
.redacted {
    background-color: var(--text-main); /* Solid block of text color */
    color: var(--text-main);            /* Text matches bg (invisible) */
    cursor: help;
    padding: 0 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.redacted:hover {
    background-color: transparent;      /* Reveal bg */
    color: var(--text-main);            /* Reveal text */
}

/* Loading Screen Overlay */
#loading-screen {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Fira Code', monospace;
}