/* =========================================================
   PROHUB ENTERPRISE: MASTER CSS
   ========================================================= */

:root {
    /* Core Palette */
    --bg-deep: #050505;
    --bg-panel: rgba(15, 15, 18, 0.85);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(80, 250, 123, 0.3);
    
    /* Brand & Alert Colors */
    --dhl-yellow: #ffcc00;
    --dhl-red: #d40511;
    --dhl-green: #00e676;
    
    /* Text Colors */
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --text-neon: #50fa7b;
    
    /* UI Sizing */
    --taskbar-height: 35px;
    --left-nav-width: 260px;
    --right-data-width: 320px;
}

/* --- GLOBAL RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
    overflow: hidden; /* Prevent page scrolling, handled inside panels */
    height: 100vh;
    width: 100vw;
}

/* --- THE LOCK SCREEN --- */
#lock-screen-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--dhl-yellow);
    padding: 40px;
    width: 350px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.enterprise-input {
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-family: monospace;
    margin-bottom: 15px;
    outline: none;
}
.enterprise-input:focus {
    border-color: var(--dhl-green);
}

/* --- THE MACRO LAYOUT (3 Monitors) --- */
#macro-container {
    display: grid;
    grid-template-columns: var(--left-nav-width) 1fr var(--right-data-width);
    height: calc(100vh - var(--taskbar-height));
    width: 100vw;
    gap: 2px; /* Slight gap between monitors */
    background: #000; /* Gap color */
}

.macro-split {
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* --- GLASS PANELS & HEADERS --- */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    padding: 10px 15px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
}

.control-section {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- STATUS READOUT --- */
.status-readout {
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 4px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--dhl-yellow);
    font-family: monospace;
    letter-spacing: 1px;
}

/* --- ENTERPRISE BUTTONS --- */
.action-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.action-btn:hover { filter: brightness(1.2); }
.action-btn:active { transform: scale(0.98); }

.auth-btn { background: var(--dhl-green); color: #000; }
.start-btn { background: var(--dhl-green); color: #000; }
.alt-btn { background: #333; color: #fff; border: 1px solid #555; }
.scan-btn { background: var(--dhl-yellow); color: #000; text-align: center; display: block; }
.purple-btn { background: #9c27b0; color: #fff; }
.dark-btn { background: #222; color: #fff; border: 1px solid #444; }
.danger-btn { background: var(--dhl-red); color: #fff; }
.success-btn { background: #00c853; color: #fff; }
.highlight-btn { background: var(--text-neon); color: #000; }

.section-divider {
    text-align: center;
    color: #555;
    font-size: 9px;
    font-weight: bold;
    margin: 5px 0;
    letter-spacing: 1px;
}

.dual-btn-group {
    display: flex;
    gap: 10px;
    width: 100%;
}
.dual-btn-group .action-btn { flex: 1; }

/* --- MAIN CENTER CONSOLE (3D VIEW) --- */
.center-panel {
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.view-header {
    height: 40px;
    background: #000;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.view-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--dhl-yellow);
}

.icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
}
.icon-btn:hover { opacity: 1; }

.deck-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.view-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pane-tab-bar {
    display: flex;
    background: #000;
    border-bottom: 1px solid #222;
}

.pane-tab {
    padding: 8px 15px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    border-right: 1px solid #222;
}
.pane-tab.active {
    color: #fff;
    background: #111;
    border-bottom: 2px solid var(--text-neon);
}

.pane-content {
    flex: 1;
    position: relative;
    background: #000;
}

.render-target {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- RIGHT DATA PANEL (Tabs & Modules) --- */
.right-tabs {
    display: flex;
    background: #000;
    border-bottom: 1px solid var(--border-light);
}

.right-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    text-transform: uppercase;
}

.right-tab.active {
    color: #fff;
    background: var(--bg-panel);
    border-top: 2px solid var(--dhl-yellow);
}

.right-module {
    display: none;
    flex-direction: column;
    height: calc(100% - 41px); /* minus tab height */
}
.right-module.active { display: flex; }

.search-container {
    padding: 10px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border-light);
}

/* Inner Tabs (Tree/God Mode) */
.inner-tab-container {
    display: flex;
    background: #111;
    border-bottom: 1px solid #222;
    padding: 0 10px;
    align-items: center;
}

.inner-tab {
    padding: 8px 12px;
    font-size: 10px;
    color: #888;
    cursor: pointer;
}
.inner-tab.active {
    color: var(--text-neon);
    background: #1a1a1a;
}

.tab-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.micro-btn {
    padding: 4px 8px;
    font-size: 9px;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
}
.export-btn { background: #111; border: 1px solid var(--text-neon); color: var(--text-neon); }
.clear-btn { background: transparent; border: 1px solid #555; color: #aaa; }

/* Terminal Workspace */
.terminal-workspace {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #000;
}

.terminal-panel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.terminal-feed-list {
    list-style: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
}

/* --- ADMIN TASKBAR --- */
.admin-taskbar {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: var(--taskbar-height);
    background: #000;
    border-top: 1px solid #333;
    z-index: 10000;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.admin-badge {
    color: var(--text-neon);
    font-family: monospace;
    font-size: 11px;
    font-weight: bold;
    margin-right: 20px;
    letter-spacing: 1px;
}

.taskbar-btn {
    background: #111;
    border: 1px solid #555;
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    margin-right: 8px;
    cursor: pointer;
    border-radius: 3px;
}
.taskbar-btn.danger-text { color: #ff5555; border-color: #900; }

.admin-cli {
    background: #000;
    border: 1px solid #555;
    color: var(--text-neon);
    font-family: monospace;
    font-size: 11px;
    padding: 4px 8px;
    margin-left: auto;
    width: 300px;
    outline: none;
    border-radius: 3px;
}

/* --- ADMIN CONSOLE OVERLAY --- */
.admin-overlay {
    position: fixed;
    bottom: var(--taskbar-height); left: 0; width: 100%;
    height: 200px;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--text-neon);
    z-index: 9999;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.admin-dragger {
    width: 100%;
    height: 10px;
    cursor: ns-resize;
    background: rgba(80, 250, 123, 0.1);
    border-bottom: 1px solid rgba(80, 250, 123, 0.3);
}

.admin-output {
    flex: 1;
    overflow-y: auto;
    color: #0f0;
    font-family: monospace;
    font-size: 11px;
    padding: 10px;
}

/* --- LIGHTBOX MODAL --- */
#lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    flex-direction: column;
}
.glass-toolbar {
    background: rgba(20, 20, 20, 0.8);
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #333;
}
.lb-btn {
    background: #222;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
}
.lb-btn:hover { background: #444; }
.close-btn { background: #900; border-color: #f00; }
#lightbox-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

/* --- UTILITIES --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }