/* ==========================================================================
   GHOSTNET KALI SIMULATOR - SLEEK VIRTUAL KALI THEME
   ========================================================================== */

/* Color Token Dictionary */
:root {
    --bg-dark-charcoal: #0c0f12;
    --bg-terminal-header: #1e2229;
    --bg-desktop-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    
    --kali-purple-primary: #1d4ed8; /* Vibrant Cobalt/Navy Blue Primary */
    --kali-purple-dark: #1e3a8a;    /* Deep Dark Navy */
    --kali-purple-glow: rgba(29, 78, 216, 0.4);
    --kali-purple-dim: rgba(29, 78, 216, 0.15);
    
    --neon-green: #00ff66;
    --neon-green-glow: rgba(0, 255, 102, 0.3);
    --neon-yellow: #ffcc00;
    
    --alert-red: #ff3333;
    
    --text-primary: #d5d9e0;
    --text-muted: #6e7681;
    --text-bright: #ffffff;
    
    --font-terminal: 'Fira Code', 'Share Tech Mono', monospace;
}

/* Document Properties */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #030303;
    color: var(--text-primary);
    font-family: var(--font-terminal);
    font-size: 14px;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   CRT SCREEN EFFECTS
   ========================================================================== */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

@keyframes crt-flicker {
    0% { opacity: 0.99; }
    50% { opacity: 0.995; }
    100% { opacity: 0.99; }
}

.crt-screen {
    animation: crt-flicker 0.2s infinite;
}

.crt-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85);
    z-index: 9998;
    pointer-events: none;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-charcoal);
}
::-webkit-scrollbar-thumb {
    background: #333945;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--kali-purple-primary);
}

/* ==========================================================================
   1. BOOT SEQUENCE DIAGNOSTICS
   ========================================================================== */

.boot-container {
    background-color: #000000;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
}

.boot-terminal {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background-color: #050505;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--neon-green);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 0 15px rgba(0,255,102,0.02);
}

.boot-line {
    white-space: pre-wrap;
}
.boot-success { color: var(--neon-green); font-weight: bold; }
.boot-warning { color: var(--neon-yellow); }
.boot-error { color: var(--alert-red); }

.boot-footer {
    margin-top: 25px;
}

/* ==========================================================================
   2. KALI LINUX SYSTEM LOGIN SCREEN
   ========================================================================== */

.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #090d16 0%, #020617 100%);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 360px;
    background: rgba(11, 17, 30, 0.9);
    border: 1px solid var(--kali-purple-dim);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--kali-purple-dim);
    border-radius: 6px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    backdrop-filter: blur(10px);
}

.login-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kali-dragon-svg {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 8px var(--kali-purple-glow));
    margin-bottom: 12px;
}

.login-logo-title {
    font-size: 22px;
    letter-spacing: 3px;
    font-weight: bold;
    color: var(--text-bright);
    text-transform: lowercase;
}

.login-logo-sub {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--kali-purple-primary);
    text-transform: uppercase;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-input {
    background: #070a10;
    color: var(--text-bright);
    border: 1px solid rgba(29, 78, 216, 0.3);
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.login-input:focus {
    border-color: var(--kali-purple-primary);
    box-shadow: 0 0 10px rgba(140, 67, 255, 0.3);
}

.btn-login {
    background: var(--kali-purple-primary);
    color: var(--text-bright);
    border: none;
    padding: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--kali-purple-dark);
    box-shadow: 0 0 15px var(--kali-purple-glow);
}

.login-error-text {
    color: var(--alert-red);
    font-size: 11px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.login-sys-intel {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 1.5px;
}
.lbl-glow-green {
    color: var(--neon-green);
    text-shadow: 0 0 6px var(--neon-green);
}

/* ==========================================================================
   3. KALI LINUX SYSTEM DESKTOP ARCHITECTURE
   ========================================================================== */

.kali-desktop {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: url('/static/navy_wallpaper.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

/* XFCE TOP SYSTEM PANEL */
.kali-taskbar {
    height: 32px;
    background-color: #16191c;
    border-bottom: 1px solid #22272e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 50;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon-btn {
    background: transparent;
    border: none;
    color: var(--kali-purple-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
}
.menu-icon-btn:hover {
    color: var(--text-bright);
}

.taskbar-icons {
    display: flex;
    gap: 12px;
    font-size: 12px;
}
.active-app-indicator {
    color: var(--text-bright);
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
    border-bottom: 2px solid var(--kali-purple-primary);
}
.inactive-app-icon {
    color: var(--text-muted);
    cursor: pointer;
}
.inactive-app-icon:hover {
    color: var(--text-primary);
}

.taskbar-center {
    display: flex;
    gap: 25px;
}
.sys-hud-stat {
    display: flex;
    gap: 6px;
    font-size: 12px;
}
.stat-lbl {
    color: var(--text-muted);
}
.stat-val {
    font-weight: 600;
}
.text-glow-yellow {
    color: var(--neon-yellow);
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
}
.taskbar-clock {
    color: var(--text-bright);
}

/* DESKTOP BODY TERMINAL CONTAINER */
.desktop-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Sleek Monospaced Linux Terminal Window Layout */
.terminal-window {
    width: 100%;
    max-width: 900px;
    height: 520px;
    background-color: var(--bg-dark-charcoal);
    border: 1px solid #2d3139;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 10px rgba(140, 67, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    z-index: 10;
}

.terminal-window-header {
    height: 34px;
    background-color: var(--bg-terminal-header);
    border-bottom: 1px solid #1a1d22;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    user-select: none;
    cursor: grab;
}
.terminal-window-header:active {
    cursor: grabbing;
}

.terminal-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-primary);
}
.term-title-icon {
    color: var(--kali-purple-primary);
}

.terminal-window-controls {
    display: flex;
    gap: 12px;
}
.ctrl-btn {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ctrl-btn:hover {
    color: var(--text-bright);
}

.terminal-window-body {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    cursor: text;
}

.terminal-screen-scroller {
    display: flex;
    flex-direction: column;
    gap: 8px;
    word-break: break-all;
    white-space: pre-wrap;
    font-size: 13px;
}

/* CLI Text output styles */
.term-stdout {
    color: var(--text-primary);
    line-height: 1.6;
}

.term-stdout-red {
    color: var(--alert-red);
}
.term-stdout-green {
    color: var(--neon-green);
}
.term-stdout-yellow {
    color: var(--neon-yellow);
}
.term-stdout-purple {
    color: var(--kali-purple-primary);
}
.term-stdout-muted {
    color: var(--text-muted);
}

/* Prompt CLI Inputs row styles */
.terminal-prompt-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
}

.prompt-prefix {
    user-select: none;
    display: flex;
}
.prompt-user {
    color: #33ff33;
    font-weight: bold;
}
.prompt-colon {
    color: var(--text-primary);
}
.prompt-path {
    color: #387eff;
    font-weight: bold;
}
.prompt-char {
    color: var(--text-primary);
}

.prompt-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

/* Invisible core input overlay */
.hidden-cli-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: transparent;
    color: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    cursor: text;
    z-index: 10;
}

.visible-input-text {
    color: var(--text-bright);
    white-space: pre-wrap;
    word-break: break-all;
    font-family: inherit;
    min-height: 1.2em;
    display: inline-block;
}

/* Phosphor blinking caret */
@keyframes blink-cursor {
    0%, 100% { background-color: transparent; }
    50% { background-color: var(--text-bright); }
}

.term-caret {
    display: inline-block;
    width: 8px;
    height: 14px;
    margin-left: 2px;
    animation: blink-cursor 1s infinite;
}

/* ==========================================================================
   BUTTONS AND RETRO DECORATIONS
   ========================================================================== */

.btn-primary {
    font-family: inherit;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-transform: uppercase;
    background-color: var(--kali-purple-primary);
    color: var(--text-bright);
    border: 1px solid var(--kali-purple-primary);
    box-shadow: 0 0 10px var(--kali-purple-glow);
}
.btn-primary:hover {
    background-color: #000;
    color: var(--kali-purple-primary);
    box-shadow: 0 0 20px var(--kali-purple-primary);
}

/* ==========================================================================
   DYNAMIC GLITCH LEVEL-UP MODALS
   ========================================================================== */

.rankup-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in-modal 0.3s ease forwards;
}

@keyframes fade-in-modal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rankup-content-glitch {
    max-width: 600px;
    width: 90%;
    border: 1px solid var(--kali-purple-primary);
    background-color: #070a10;
    box-shadow: 0 0 35px var(--kali-purple-glow);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.glitch-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--alert-red);
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 var(--kali-purple-dark);
}

.glitch-sub-title {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--kali-purple-primary);
}

.divider {
    color: var(--kali-purple-dim);
    font-size: 11px;
}

.old-new-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
}

.rank-badge-dim {
    padding: 6px 12px;
    border: 1px solid #444;
    color: #666;
    border-radius: 3px;
}

.rank-badge-bright {
    padding: 6px 12px;
    border: 1px solid var(--kali-purple-primary);
    background-color: var(--kali-purple-dim);
    color: var(--kali-purple-primary);
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 0 15px var(--kali-purple-glow);
}

.arrow {
    color: var(--kali-purple-primary);
    font-weight: bold;
}

.rankup-flavor {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   DESKTOP ICONS GRID & WINDOW MAXIMIZED STYLES
   ========================================================================== */

.desktop-icons-grid {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
    user-select: none;
}

.desktop-icon-wrapper {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.desktop-icon-wrapper:hover {
    background: rgba(140, 67, 255, 0.12);
    border-color: rgba(140, 67, 255, 0.35);
    box-shadow: 0 0 12px rgba(140, 67, 255, 0.15);
}

.desktop-icon-symbol {
    font-size: 32px;
    color: var(--kali-purple-primary);
    filter: drop-shadow(0 0 4px var(--kali-purple-glow));
    margin-bottom: 6px;
    transition: transform 0.2s ease;
}

.desktop-icon-wrapper:hover .desktop-icon-symbol {
    transform: scale(1.1);
    color: var(--text-bright);
}

.desktop-icon-label {
    font-size: 11px;
    color: var(--text-primary);
    font-family: var(--font-terminal);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.85);
    word-break: break-word;
}

/* Terminal Maximized State Override */
.terminal-window.maximized {
    max-width: 100vw;
    width: 100vw;
    height: calc(100vh - 32px);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    border: none;
    z-index: 100;
}

/* ==========================================================================
   WEB BROWSER SUBSYSTEM STYLING
   ========================================================================== */

.browser-window {
    width: 100%;
    max-width: 950px;
    height: 550px;
    background-color: var(--bg-dark-charcoal);
    border: 1px solid #2d3139;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 15px var(--kali-purple-dim);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    z-index: 20;
}

.browser-window-header {
    height: 34px;
    background-color: var(--bg-terminal-header);
    border-bottom: 1px solid #1a1d22;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    user-select: none;
    cursor: grab;
}
.browser-window-header:active {
    cursor: grabbing;
}

.browser-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-primary);
}

.browser-title-icon {
    color: var(--kali-purple-primary);
}

.browser-window-controls {
    display: flex;
    gap: 12px;
}

/* Browser Toolbar styling */
.browser-toolbar {
    height: 42px;
    background-color: #16191c;
    border-bottom: 1px solid #22272e;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
}

.browser-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.browser-nav-btn:hover {
    background-color: rgba(140, 67, 255, 0.15);
    border-color: var(--kali-purple-primary);
    color: var(--text-bright);
    box-shadow: 0 0 8px rgba(140, 67, 255, 0.3);
}

.browser-address-container {
    flex: 1;
    display: flex;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background-color: #0c0f12;
}

.browser-address-bar {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    font-family: var(--font-terminal);
    font-size: 12px;
    padding: 0 10px;
}

.browser-go-btn {
    background: var(--kali-purple-primary);
    border: none;
    color: var(--text-bright);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 0 15px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.browser-go-btn:hover {
    background: var(--kali-purple-dark);
}

/* Spinner */
.browser-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(140, 67, 255, 0.2);
    border-top: 2px solid var(--kali-purple-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.browser-viewport-container {
    flex: 1;
    background-color: #ffffff;
    position: relative;
}

#browser-viewport {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #ffffff;
}

/* Maximized overrides */
.browser-window.maximized {
    max-width: 100vw;
    width: 100vw;
    height: calc(100vh - 32px);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    border: none;
    z-index: 100;
}


/* ==========================================================================
   WORKSPACE FILE EXPLORER SUBSYSTEM STYLING
   ========================================================================== */

.files-window {
    width: 100%;
    max-width: 1000px;
    height: 580px;
    background-color: var(--bg-dark-charcoal);
    border: 1px solid #2d3139;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 15px var(--kali-purple-dim);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    z-index: 21;
}

.files-window-header {
    height: 34px;
    background-color: var(--bg-terminal-header);
    border-bottom: 1px solid #1a1d22;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    user-select: none;
    cursor: grab;
}
.files-window-header:active {
    cursor: grabbing;
}

.files-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-primary);
}

.files-title-icon {
    color: var(--kali-purple-primary);
}

.files-window-controls {
    display: flex;
    gap: 12px;
}

/* File explorer toolbar styling */
.files-toolbar {
    height: 42px;
    background-color: #16191c;
    border-bottom: 1px solid #22272e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    gap: 20px;
}

.files-breadcrumbs-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.files-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.files-nav-btn:hover {
    background-color: rgba(140, 67, 255, 0.15);
    border-color: var(--kali-purple-primary);
    color: var(--text-bright);
}

.files-breadcrumb-path {
    font-size: 12px;
    color: var(--neon-green);
    font-family: var(--font-terminal);
    font-weight: 600;
}

.files-search-container {
    width: 220px;
}

.files-search-bar {
    width: 100%;
    height: 26px;
    background-color: #0c0f12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-bright);
    font-family: inherit;
    font-size: 11px;
    padding: 0 10px;
    outline: none;
}

.files-search-bar:focus {
    border-color: var(--kali-purple-primary);
    box-shadow: 0 0 6px rgba(140, 67, 255, 0.3);
}

/* Dynamic Split Layout structure */
.files-split-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar navigation styles */
.files-sidebar {
    width: 180px;
    background-color: #101316;
    border-right: 1px solid #1a1d22;
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    gap: 8px;
    user-select: none;
}

.sidebar-section-title {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding-left: 8px;
    font-weight: bold;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-bright);
}

.sidebar-item.active {
    background-color: var(--kali-purple-dim);
    border-left: 3px solid var(--kali-purple-primary);
    color: var(--text-bright);
    font-weight: 600;
}

/* Explorer Grid items listing */
.files-grid-container {
    flex: 1;
    background-color: #0c0f12;
    padding: 15px;
    overflow-y: auto;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.file-item:hover {
    background-color: rgba(140, 67, 255, 0.08);
    border-color: rgba(140, 67, 255, 0.25);
}

.file-item.selected {
    background-color: rgba(140, 67, 255, 0.18);
    border-color: var(--kali-purple-primary);
    box-shadow: 0 0 10px rgba(140, 67, 255, 0.15);
}

.file-item-icon {
    font-size: 28px;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

.file-item:hover .file-item-icon {
    transform: scale(1.08);
}

.file-item-name {
    font-size: 11px;
    color: var(--text-primary);
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* File Preview Right pane panel styles */
.files-preview-pane {
    width: 320px;
    background-color: #101316;
    border-left: 1px solid #1a1d22;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    padding: 15px;
    border-bottom: 1px solid #1a1d22;
    background-color: #13161a;
}

.preview-title {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-bright);
    word-break: break-all;
}

.preview-subtitle {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.preview-body {
    flex: 1;
    overflow: auto;
    padding: 15px;
    position: relative;
    background-color: #090b0d;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    gap: 15px;
}

.placeholder-icon {
    font-size: 40px;
    opacity: 0.3;
}

.preview-placeholder p {
    font-size: 11px;
    line-height: 1.6;
}

/* Custom view scroll code blocks */
.preview-code-block {
    background-color: #07090b;
    border: 1px solid #161a22;
    border-radius: 4px;
    padding: 12px;
    margin: 0;
    font-family: var(--font-terminal);
    font-size: 11px;
    color: var(--text-primary);
    white-space: pre;
    line-height: 1.5;
    tab-size: 4;
}

/* Active stacking focus window styling */
.active-window-layer {
    z-index: 150 !important;
    border-color: var(--kali-purple-primary) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85), 0 0 20px var(--kali-purple-glow) !important;
}

.files-window.maximized {
    max-width: 100vw;
    width: 100vw;
    height: calc(100vh - 32px);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    border: none;
    z-index: 100;
}
