/**
 * VGT INVENTIONS CORE — EPR SIMULATOR STYLESHEET (ACADEMIC TERMINAL v2.6.5)
 * Hochmodernes Glassmorphism-Design mit CERN-Schnittstellen-Ästhetik.
 */

:root {
    --vgt-bg-main: #02040a;
    --vgt-bg-panel: rgba(10, 15, 30, 0.7);
    --vgt-bg-card: rgba(6, 10, 20, 0.85);
    --vgt-border: rgba(99, 102, 241, 0.2);
    --vgt-border-hover: rgba(56, 189, 248, 0.6);
    --vgt-cyan: #06b6d4;
    --vgt-cyan-glow: rgba(6, 182, 212, 0.45);
    --vgt-blue: #3b82f6;
    --vgt-indigo: #6366f1;
    --vgt-indigo-glow: rgba(99, 102, 241, 0.45);
    --vgt-emerald: #10b981;
    --vgt-rose: #f43f5e;
    --vgt-amber: #f59e0b;
    --vgt-text-light: #f8fafc;
    --vgt-text-muted: #94a3b8;
    --vgt-text-dim: #475569;
    
    --vgt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --vgt-font-tech: 'Orbitron', 'Fira Code', monospace;
    --vgt-font-code: 'Fira Code', monospace;
}

#vgt-epr-root {
    font-family: var(--vgt-font-sans);
    background-color: var(--vgt-bg-main);
    color: var(--vgt-text-light);
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

#vgt-epr-root *, #vgt-epr-root *::before, #vgt-epr-root *::after {
    box-sizing: border-box;
}

#vgt-epr-root .font-tech {
    font-family: var(--vgt-font-tech);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#vgt-epr-root .font-code {
    font-family: var(--vgt-font-code);
}

/* HEADER STYLE REDESIGN WITH HOME REDIRECT */
.vgt-header {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--vgt-border);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.vgt-header-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Premium Home Button */
.vgt-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--vgt-text-light);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.vgt-home-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--vgt-cyan);
    color: var(--vgt-cyan);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.vgt-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vgt-pulse-indicator {
    position: relative;
    display: flex;
    height: 10px;
    width: 10px;
}

.vgt-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--vgt-cyan);
    opacity: 0.75;
    animation: vgt-ping 1.8s infinite ease-out;
}

.vgt-pulse-dot {
    position: relative;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    background-color: var(--vgt-cyan);
}

.vgt-header-title h1 {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(90deg, var(--vgt-cyan), var(--vgt-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vgt-header-title p {
    font-size: 9px;
    color: var(--vgt-cyan);
    margin: 2px 0 0 0;
    opacity: 0.85;
}

/* Telemetry Strip */
.vgt-telemetry-strip {
    display: none;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(2, 4, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@media (min-width: 1024px) {
    .vgt-telemetry-strip {
        display: flex;
    }
}

.vgt-telemetry-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vgt-telemetry-label {
    color: var(--vgt-text-muted);
}

.vgt-telemetry-val {
    color: var(--vgt-cyan);
    font-weight: bold;
}

.vgt-telemetry-val-indigo {
    color: var(--vgt-indigo);
    font-weight: bold;
}

.vgt-telemetry-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation Menu */
.vgt-nav {
    display: flex;
    background-color: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: 8px;
}

.vgt-tab-btn {
    background: transparent;
    border: none;
    color: var(--vgt-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.vgt-tab-btn:hover {
    color: var(--vgt-text-light);
    background-color: rgba(255, 255, 255, 0.02);
}

.vgt-tab-btn.active {
    color: var(--vgt-cyan);
    background-color: rgba(6, 182, 212, 0.1);
    box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.1);
}

/* RESPONSIVE LAYOUT MATRIX */
.vgt-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    flex-grow: 1;
}

@media (min-width: 1024px) {
    .vgt-main-grid {
        grid-template-columns: 320px 1fr;
    }
}

/* SIDEBAR PANELS */
.vgt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vgt-card {
    background: var(--vgt-bg-panel);
    border: 1px solid var(--vgt-border);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vgt-card-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--vgt-cyan);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vgt-card-title-indigo {
    color: var(--vgt-indigo);
}

.vgt-info-text {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--vgt-text-muted);
}

.vgt-info-text p {
    margin: 0 0 10px 0;
}

.vgt-info-text p.highlight {
    font-weight: bold;
    color: var(--vgt-text-light);
    border-left: 2px solid var(--vgt-cyan);
    padding-left: 8px;
}

.vgt-formula-box {
    background-color: rgba(3, 7, 18, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(30, 58, 138, 0.25);
    font-family: var(--vgt-font-code);
    font-size: 11px;
    color: var(--vgt-cyan);
    text-align: center;
    margin: 10px 0;
}

/* Constants & Param Tables */
.vgt-constants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--vgt-font-code);
    font-size: 11px;
}

.vgt-constant-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    padding-bottom: 4px;
}

.vgt-constant-label {
    color: var(--vgt-text-muted);
}

.vgt-constant-val {
    color: var(--vgt-text-light);
    font-weight: bold;
}

/* MAIN SIMULATOR SCREEN PANEL */
.vgt-viewport-panel {
    background-color: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vgt-viewport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.vgt-viewport-header-title h2 {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    color: var(--vgt-cyan);
}

.vgt-viewport-header-title p {
    font-size: 10px;
    color: var(--vgt-text-muted);
    margin: 2px 0 0 0;
}

/* CUSTOM HIGH-TECH REGELUNG CONTROLS */
.vgt-interactive-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .vgt-interactive-area {
        grid-template-columns: 280px 1fr;
    }
}

.vgt-control-box {
    background-color: rgba(3, 7, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 550px;
    overflow-y: auto;
}

.vgt-control-box h3 {
    font-size: 10px;
    font-weight: 800;
    color: var(--vgt-cyan);
    margin: 0;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

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

.vgt-slider-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--vgt-font-code);
    font-size: 11px;
}

.vgt-slider-label {
    color: var(--vgt-text-muted);
}

.vgt-slider-value {
    color: var(--vgt-cyan);
    font-weight: bold;
}

/* Sliders */
#vgt-epr-root input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 5px;
    border-radius: 4px;
    width: 100%;
    outline: none;
}

#vgt-epr-root input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vgt-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--vgt-cyan-glow);
    transition: transform 0.1s ease;
}

#vgt-epr-root input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #ffffff;
}

/* TELEMETRY READOUT WINDOWS (HUDs) */
.vgt-spec-box {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--vgt-font-code);
    font-size: 11px;
}

.vgt-spec-title {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--vgt-cyan);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.vgt-spec-row {
    display: flex;
    justify-content: space-between;
}

.vgt-spec-label {
    color: var(--vgt-text-muted);
}

.vgt-spec-val {
    color: var(--vgt-text-light);
    font-weight: bold;
}

.vgt-compression-badge {
    background-color: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.12);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.vgt-compression-lbl {
    font-size: 9px;
    color: var(--vgt-cyan);
    font-weight: 800;
}

.vgt-compression-num {
    font-size: 18px;
    font-weight: 900;
    color: var(--vgt-cyan);
    font-family: var(--vgt-font-tech);
}

.vgt-compression-sub {
    font-size: 9.5px;
    color: var(--vgt-emerald);
    font-weight: 600;
}

/* 3D CANVAS DOCKS & WEBGL SLOTS */
.vgt-canvas-container {
    background-color: #020408;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
}

.vgt-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

/* 3D Compass Indicator Widget */
.vgt-compass-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.vgt-compass-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px dashed var(--vgt-cyan);
    position: relative;
    animation: vgt-spin 20s linear infinite;
    flex-shrink: 0;
}

.vgt-compass-indicator::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--vgt-cyan);
    border-radius: 50%;
    top: 2px;
    left: 11px;
    box-shadow: 0 0 6px var(--vgt-cyan);
}

/* SANIERTER FOOTER - VERHINDERT CLUMPING */
.vgt-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: 20px;
    font-family: var(--vgt-font-code);
    font-size: 10px;
    color: var(--vgt-text-muted);
}

.vgt-footer-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .vgt-footer-wrap {
        flex-direction: row;
    }
}

.vgt-footer-copyright {
    color: var(--vgt-text-dim);
}

.vgt-footer-links {
    display: flex;
    gap: 16px;
}

.vgt-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--vgt-text-muted);
    transition: color 0.2s ease;
}

.vgt-footer-link:hover {
    color: var(--vgt-cyan);
}

.vgt-footer-link svg {
    color: var(--vgt-cyan);
}

.vgt-footer-link-indigo svg {
    color: var(--vgt-indigo);
}

/* ERROR SYSTEM OVERLAY */
#vgt-epr-error-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 4, 10, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.vgt-error-modal {
    background-color: var(--vgt-bg-panel);
    border: 1px solid rgba(244, 63, 94, 0.4);
    padding: 24px;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vgt-error-modal svg {
    color: var(--vgt-rose);
    width: 36px;
    height: 36px;
}

.vgt-error-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--vgt-rose);
    margin: 0;
}

.vgt-error-msg {
    font-size: 11.5px;
    line-height: 1.5;
}

.vgt-btn-error {
    background-color: rgba(244, 63, 94, 0.1);
    border: 1px solid var(--vgt-rose);
    color: var(--vgt-text-light);
}

.vgt-btn-error:hover {
    background-color: var(--vgt-rose);
    color: #ffffff;
}

/* SVGs */
.vgt-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.vgt-icon-lg {
    width: 18px;
    height: 18px;
}

.hidden {
    display: none !important;
}

@keyframes vgt-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes vgt-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* EXPORT MODAL PANEL OVERLAY */
#vgt-export-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 10, 0.95);
    backdrop-filter: blur(8px);
    z-index: 500;
    padding: 24px;
}

#vgt-export-modal .vgt-card {
    border-color: var(--vgt-indigo);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
    max-width: 750px;
    width: 100%;
}

#vgt-export-modal textarea {
    width: 100%;
    height: 110px;
    background: #03060f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #a7f3d0;
    padding: 10px;
    border-radius: 6px;
    font-size: 10px;
    resize: none;
    margin-top: 6px;
    outline: none;
}

#vgt-export-modal textarea:focus {
    border-color: var(--vgt-indigo);
}

@media (max-width: 1024px) {
    .vgt-main-grid {
        grid-template-columns: 1fr;
    }
    .vgt-sidebar {
        order: 2;
    }
    .vgt-viewport-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .vgt-header {
        flex-direction: column;
        align-items: stretch;
    }
    .vgt-header-left-group {
        justify-content: space-between;
    }
    .vgt-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    .vgt-interactive-area {
        grid-template-columns: 1fr;
    }
    .vgt-control-box {
        max-height: none;
    }
}