/* ==========================================================================
   IT Core Knowledge Hub - Global System Architecture Stylesheet
   ========================================================================== */

@import url('https://googleapis.com');

/* --- Root Design Tokens (Light System Default) --- */
:root {
    --bg-canvas: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-subtle: #e2e8f0;
    --accent-blue: #2563eb;
    --accent-emerald: #059669;
    --accent-glow: rgba(37, 99, 235, 0.05);
}

/* --- Dark System Override Overrides --- */
.dark, [data-theme="dark"] {
    --bg-canvas: #0f172a;
    --bg-surface: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-subtle: #334155;
    --accent-blue: #38bdf8;
    --accent-emerald: #34d399;
    --accent-glow: rgba(56, 189, 248, 0.05);
}

/* --- Global Structural Core --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-canvas) !important;
    color: var(--text-main) !important;
    line-height: 1.5;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

code, pre {
    font-family: 'JetBrains+Mono', monospace !important;
}

/* --- Premium Layout Containers & Cards --- */
.custom-card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s ease;
}

.custom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-blue) !important;
}

/* --- Interactive Simulator Sizing Logic --- */
.terminal-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
}

.terminal-fullscreen .flex-grow {
    height: calc(100vh - 90px) !important;
}

/* --- Custom Scrollbar Formats --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
