/* 
 * Modern Terminal Portfolio - v2.1
 * Theme: terminal.shop Inspired UI
 */

:root {
    /* Colors - Terminal.shop Inspired */
    --bg-dark: #000000;
    --bg-sidebar: #0a0a0a;
    --bg-header: #050505;
    --accent: #00ff41;
    --accent-subtle: #003310;
    --text-main: #00ff41;
    --text-dim: #008822;
    --text-path: #00ff41;
    --border-main: #004411;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;

    /* Gaps & Sizes */
    --sidebar-width: 240px;
    --header-height: 32px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-mono);
}

/* --- UI Layout --- */
#ui-overlay {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* --- Sidebar --- */
#sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 100;
}

.sidebar-header {
    padding: 0 20px 30px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 25px;
    padding: 0 20px;
}

.nav-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.nav-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-path);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--accent);
    padding-left: 5px;
}

.sidebar-footer {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-main);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
}

.status-text {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* --- Main Content --- */
#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#top-bar {
    height: var(--header-height);
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.path-display {
    color: var(--text-path);
    font-size: 0.85rem;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.stat-item {
    font-size: 0.8rem;
    display: flex;
    gap: 5px;
}

.stat-icon {
    color: var(--text-dim);
}

.threat-level.low {
    color: #00ff00;
}

.threat-level.med {
    color: #ffff00;
}

.threat-level.high {
    color: #ff0000;
}

/* --- Terminal Customization --- */
.terminal-fullscreen {
    flex: 1;
    padding: 10px;
    background-color: var(--bg-dark);
}

#terminal {
    width: 100%;
    height: 100%;
}

.xterm-viewport {
    background-color: transparent !important;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        display: none;
    }

    :root {
        --sidebar-width: 0px;
    }
}