/* NYENBEEK Terminal Theme Styles */

/* ========================================
   THEME FIXES - BACKGROUND & VISIBILITY
   ======================================== */

/* Terminal/Amber: Black background for entire hero-section (contains logo + MAIN MENU) */
body[data-theme="terminal"] .hero-section,
body[data-theme="amber"] .hero-section,
body:not([data-theme]) .hero-section {
    background-color: #000000 !important;
}

/* Terminal/Amber: Black background for logo header (outside frame) */
body[data-theme="terminal"] .terminal-logo-header,
body[data-theme="amber"] .terminal-logo-header,
body:not([data-theme]) .terminal-logo-header {
    background-color: #000000 !important;
}

/* CGA/EGA/Web2: Hide hero-section entirely (contains MAIN MENU white box) */
body[data-theme="cga"] .hero-section,
body[data-theme="ega"] .hero-section,
body[data-theme="web2"] .hero-section {
    display: none !important;
}

/* Terminal/Amber/CGA/EGA: Add bottom padding to prevent content hiding behind fixed prompt */
/* Terminal (default) - Black background */
body[data-theme="terminal"],
body:not([data-theme]) {
    padding-bottom: 250px !important;
    background-color: #000000 !important;
}

/* Amber - Black background (same as Terminal) */
body[data-theme="amber"] {
    padding-bottom: 250px !important;
    background-color: #000000 !important;
}

/* CGA - Black background */
body[data-theme="cga"] {
    padding-bottom: 250px !important;
    background-color: #000000 !important;
}

/* EGA/VGA - Dark blue background (matches EGA theme #000080) */
body[data-theme="ega"] {
    padding-bottom: 250px !important;
    background-color: #000080 !important;
}

/* ========================================
   END THEME FIXES
   ======================================== */

/* ========================================
   TRAINING PAGES - THEME SPECIFIC STYLING
   ======================================== */

/* Terminal breadcrumb navigation (only visible in Terminal/Amber) */
.terminal-breadcrumb {
    display: none;
    background: var(--bg-color);
    color: var(--text-color);
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    border-bottom: 1px solid var(--border-color);
}
body[data-theme="terminal"] .terminal-breadcrumb,
body[data-theme="amber"] .terminal-breadcrumb {
    display: block !important;
}

/* Navbar visibility per theme (historically accurate) */
/* Terminal (1979) and Amber (1980): NO navbar - only command prompt */
/* CGA+ (1984+): Show navbar */
body[data-training-id] .navbar {
    display: none !important;
}
body[data-training-id][data-theme="cga"] .navbar,
body[data-training-id][data-theme="ega"] .navbar,
body[data-training-id][data-theme="web1"] .navbar,
body[data-training-id][data-theme="web2"] .navbar,
body[data-training-id][data-theme="win95"] .navbar,
body[data-training-id][data-theme="modern"] .navbar {
    display: flex !important;
}

/* Win95: Training page window styling */
body[data-training-id][data-theme="win95"] {
    background: #008080;
    padding: 0;
}

body[data-training-id][data-theme="win95"] .navbar,
body[data-training-id][data-theme="win95"] .prompt-section,
body[data-training-id][data-theme="win95"] .terminal-breadcrumb {
    display: none !important;
}

.win95-training-window {
    position: fixed;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 80px;
    background: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.win95-window-titlebar {
    background: linear-gradient(90deg, #0a246a 0%, #3a6ea7 55%, #102d6a 100%);
    color: white;
    padding: 3px 5px;
    font-family: 'W95FA', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000;
}

.win95-window-title {
    display: flex;
    align-items: center;
}

.win95-window-controls {
    display: flex;
    gap: 2px;
}

.win95-window-controls button {
    width: 16px;
    height: 14px;
    background: #C0C0C0;
    border-top: 1px solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    font-size: 9px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    font-family: 'W95FA', Arial, sans-serif;
}

.win95-window-controls button:active {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
}

.win95-window-content {
    flex: 1;
    background: #C0C0C0;
    overflow-y: auto;
    padding: 15px;
}

.win95-window-content section {
    background: #C0C0C0 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

.win95-window-content * {
    color: #000000 !important;
    font-family: 'W95FA', 'MS Sans Serif', Arial, sans-serif !important;
    font-size: 11px !important;
}

.win95-window-content h1 {
    font-size: 16px !important;
    font-weight: bold !important;
}

.win95-window-content h2 {
    font-size: 13px !important;
    font-weight: bold !important;
}

.win95-window-content h4 {
    font-size: 11px !important;
    font-weight: bold !important;
}

body[data-training-id][data-theme="modern"] a:hover {
    text-decoration: underline;
}
/* ========================================
   END TRAINING PAGES
   ======================================== */

/* ========================================
   TOAST NOTIFICATIONS (ALL THEMES)
   ======================================== */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 320px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.success {
    border-left: 4px solid #10b981; /* Green accent */
}

.toast-notification.error {
    border-left: 4px solid #ef4444; /* Red accent */
}

.toast-notification.info {
    border-left: 4px solid #3b82f6; /* Blue accent */
}

/* AI Era Dark Mode Toast */
body[data-theme="modern"]:not(.light-mode) .toast-notification {
    background: rgba(30, 30, 30, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Terminal/Retro Themes Toast */
body[data-theme="terminal"] .toast-notification,
body[data-theme="amber"] .toast-notification,
body[data-theme="cga"] .toast-notification,
body[data-theme="ega"] .toast-notification {
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    font-family: 'Courier New', monospace;
    border-radius: 0;
    backdrop-filter: none;
}

/* ========================================
   END TOAST NOTIFICATIONS
   ======================================== */

/* Web Font Imports for Authentic Era Fonts */
/* Terminal (1979) - Perfect DOS VGA for authentic terminal experience */
/* @import url('https://fonts.googleapis.com/css2?family=Perfect+DOS+VGA+437&display=swap'); */
/* EGA/VGA (1987) - More Perfect DOS VGA for 16-color era */
/* @import url('https://fonts.googleapis.com/css2?family=More+Perfect+DOS+VGA&display=swap'); */
/* Windows 95 (1995) - W95FA for authentic Windows 95 system font with bold weights */
/* @import url('https://fonts.googleapis.com/css2?family=W95FA:wght@400;700;900&display=swap'); */
/* Web 2.0 (2004) - Roboto for clean web 2.0 era */
/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap'); */
/* AI Era (2024) - Inter for modern interfaces */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap'); */

/* CSS Variables for Theme Switching */
:root {
    --era: 'terminal';
    --bg-color: #000000;
    --text-color: #00FF00;
    --text-color-dim: #008800;
    --accent-color: #00FF00;
    --border-color: #00FF00;
    --shadow-color: rgba(0, 255, 0, 0.3);
    --font-family: 'Perfect DOS VGA 437', 'Courier New', Courier, monospace;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Typography - Terminal themes only */
body[data-theme="terminal"] h1,
body[data-theme="terminal"] h2,
body[data-theme="terminal"] h3,
body[data-theme="terminal"] h4,
body[data-theme="terminal"] h5,
body[data-theme="terminal"] h6,
body[data-theme="amber"] h1,
body[data-theme="amber"] h2,
body[data-theme="amber"] h3,
body[data-theme="amber"] h4,
body[data-theme="amber"] h5,
body[data-theme="amber"] h6,
body[data-theme="cga"] h1,
body[data-theme="cga"] h2,
body[data-theme="cga"] h3,
body[data-theme="cga"] h4,
body[data-theme="cga"] h5,
body[data-theme="cga"] h6,
body[data-theme="ega"] h1,
body[data-theme="ega"] h2,
body[data-theme="ega"] h3,
body[data-theme="ega"] h4,
body[data-theme="ega"] h5,
body[data-theme="ega"] h6 {
    color: var(--text-color);
    font-family: var(--font-family);
    text-transform: uppercase;
    font-weight: bold;
}

.section-title {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.5rem;
}

/* Navigation */
.navbar {
    background-color: var(--bg-color) !important;
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
}

/* Theme Switch Icon */
.theme-switch-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: bold;
    margin-left: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.theme-switch-icon:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.navbar-nav-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navbar-brand {
    color: var(--text-color) !important;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    margin: 0 10px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--bg-color) !important;
    background-color: var(--text-color);
    padding: 5px 10px;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background-color: var(--bg-color) !important;
    border: 2px solid var(--border-color) !important;
    margin-top: 10px;
    padding: 0;
}

.dropdown-item {
    color: var(--text-color) !important;
    background-color: var(--bg-color) !important;
    padding: 10px 20px;
    text-transform: uppercase;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--bg-color) !important;
    background-color: var(--text-color) !important;
}

.dropdown-divider {
    border-color: var(--border-color) !important;
    margin: 0;
}

.navbar-toggler {
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 15px;
    font-family: var(--font-family);
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 10px var(--shadow-color);
}

/* Hide default hamburger icon */
.navbar-toggler-icon {
    display: none;
}

/* Custom menu text */
.menu-text {
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
}

/* Hero section at top in Terminal/Amber themes */
body[data-theme="terminal"] .hero-section,
body[data-theme="amber"] .hero-section,
body:not([data-theme]) .hero-section {
    padding-top: 0;
    margin-top: 0;
}

/* Terminal Logo Header - outside frame */
.terminal-logo-header {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

/* Hide logo header in non-terminal themes */
body[data-theme="cga"] .terminal-logo-header,
body[data-theme="ega"] .terminal-logo-header,
body[data-theme="win95"] .terminal-logo-header,
body[data-theme="web1"] .terminal-logo-header,
body[data-theme="web2"] .terminal-logo-header,
body[data-theme="modern"] .terminal-logo-header {
    display: none !important;
}

/* ASCII Logo in terminal content */
.ascii-logo-terminal {
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 8px;
    line-height: 0.8;
    margin: 0 auto 10px auto;
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    text-align: left;
}

/* Terminal Logo Text (N Y E N B E E K) */
.terminal-logo-text {
    letter-spacing: 0.3em;
    margin-left: -0.3em;
}

/* Intro and Over Sections */
.intro-section,
.over-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background-color: var(--bg-color);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.terminal-window {
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 0;
    margin: 20px 0;
}

.terminal-header {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 5px 15px;
    font-weight: bold;
}

.terminal-content {
    padding: 20px;
}

.terminal-text {
    color: var(--text-color);
    margin: 5px 0;
    font-family: var(--font-family);
}

/* Terminal Menu */
.terminal-menu {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.terminal-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.terminal-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
}

/* Terminal menu visible by default (Terminal theme is default) */
.terminal-menu {
    display: block;
}

/* Hide terminal menu in non-terminal themes */
body[data-theme="cga"] .terminal-menu,
body[data-theme="ega"] .terminal-menu,
body[data-theme="win95"] .terminal-menu,
body[data-theme="web1"] .terminal-menu,
body[data-theme="web2"] .terminal-menu,
body[data-theme="modern"] .terminal-menu {
    display: none !important;
}

/* Hide navbar in Terminal and Amber themes */
body[data-theme="terminal"] .navbar,
body[data-theme="amber"] .navbar,
body:not([data-theme]) .navbar {
    display: none !important;
}

/* Activities Section */
.activities-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.activity-card {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    height: 100%;
    transition: all 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 0 20px var(--shadow-color);
    transform: translateY(-5px);
}

.activity-card .card-title {
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.activity-card .card-text p {
    margin: 5px 0;
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Forms */
.form-label {
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Base input styling (NOT for modern theme) */
body:not([data-theme="modern"]) .terminal-input,
body:not([data-theme="modern"]) .form-control {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-family);
    padding: 8px 12px;
}

body:not([data-theme="modern"]) .terminal-input:focus,
body:not([data-theme="modern"]) .form-control:focus {
    background-color: var(--bg-color);
    border-color: var(--text-color);
    color: var(--text-color);
    box-shadow: 0 0 10px var(--shadow-color);
    outline: none;
}

body:not([data-theme="modern"]) .terminal-input::placeholder,
body:not([data-theme="modern"]) .form-control::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* Buttons */
.btn-terminal,
.btn-primary,
.btn-secondary {
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-terminal:hover,
.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Override Bootstrap focus states */
.btn-terminal:focus,
.btn-primary:focus,
.btn-secondary:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 10px var(--shadow-color) !important;
}

/* Disabled button states */
.btn-terminal:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-color);
    border-color: var(--text-color-dim);
    color: var(--text-color-dim);
}

/* Links styling to prevent blue */
a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Command Prompt Section */
.prompt-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-top: 2px solid var(--border-color);
    z-index: 1000;
}

.prompt-container {
    padding: 10px;
}

.prompt-output {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.prompt-output p {
    margin: 2px 0;
    color: var(--text-color);
    font-family: var(--font-family);
}

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

.prompt-prefix {
    color: var(--text-color);
    margin-right: 10px;
    font-weight: bold;
}

.prompt-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-family);
    outline: none;
    font-size: 14px;
    caret-color: transparent; /* Hide default vertical cursor completely */
    text-shadow: 0 0 5px var(--shadow-color);
}

/* For terminal theme, show underscore cursor via JavaScript */
body:not([data-theme]) .prompt-input,
body[data-theme="terminal"] .prompt-input {
    caret-color: transparent;
}

/* For other themes later, we can restore normal cursor */
body[data-theme="modern"] .prompt-input {
    caret-color: var(--text-color);
}

@keyframes blink-underscore {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Modal Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Base terminal modal styling (NOT for modern theme) */
body:not([data-theme="modern"]) .terminal-modal .modal-content {
    background-color: var(--bg-color) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-color) !important;
}

body:not([data-theme="modern"]) .terminal-modal .modal-header {
    background-color: var(--text-color) !important;
    color: var(--bg-color) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

body:not([data-theme="modern"]) .terminal-modal .modal-title {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--bg-color) !important;
}

body:not([data-theme="modern"]) .terminal-modal .modal-body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

body:not([data-theme="modern"]) .terminal-modal .btn-close {
    background-color: transparent !important;
    border: none !important;
    color: var(--bg-color) !important;
    opacity: 1 !important;
    font-size: 16px !important;
    font-weight: bold;
}

body:not([data-theme="modern"]) .terminal-modal .btn-close:hover {
    color: var(--text-color-dim) !important;
    background-color: var(--bg-color) !important;
}

/* ========================================
   THEME-SPECIFIC LOGIN MODAL STYLING
   ======================================== */

/* Terminal/Amber/CGA: Restore default backgrounds */
body[data-theme="terminal"] .terminal-modal .modal-content,
body[data-theme="amber"] .terminal-modal .modal-content,
body[data-theme="cga"] .terminal-modal .modal-content,
body:not([data-theme]) .terminal-modal .modal-content {
    background-color: var(--bg-color);
}

body[data-theme="terminal"] .terminal-modal .modal-body,
body[data-theme="amber"] .terminal-modal .modal-body,
body[data-theme="cga"] .terminal-modal .modal-body,
body:not([data-theme]) .terminal-modal .modal-body {
    background-color: var(--bg-color);
}

/* EGA/VGA: Lighter blue with yellow accents */
body[data-theme="ega"] .terminal-modal .modal-content {
    background-color: #0000AA !important;
    border: 3px solid #FFFF00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

body[data-theme="ega"] .terminal-modal .modal-header {
    background-color: #FFFF00 !important;
    color: #0000AA;
    border-bottom: 2px solid #FFFF00;
}

body[data-theme="ega"] .terminal-modal .modal-title {
    color: #0000AA;
}

body[data-theme="ega"] .terminal-modal .modal-body {
    background-color: #0000AA !important;
    background: #0000AA;
}

body[data-theme="ega"] .terminal-modal .btn-close {
    color: #0000AA;
}

/* Web 1.0: White background with gray header */
body[data-theme="web1"] #loginModal,
body[data-theme="web1"] .modal.terminal-modal {
    z-index: 999999; /* Above EVERYTHING including logo */
    background-color: rgba(0, 0, 0, 0.5); /* Dark backdrop */
}

body[data-theme="web1"] #loginModal .modal-dialog,
body[data-theme="web1"] .terminal-modal .modal-dialog {
    z-index: 1000000;
    background-color: #FFFFFF !important; /* Solid white */
    padding: 0;
    border-radius: 0;
    position: relative;
    margin: 1.75rem auto;
    max-width: 500px;
}

body[data-theme="web1"] #loginModal .modal-content,
body[data-theme="web1"] .terminal-modal .modal-content {
    background-color: #FFFFFF !important;
    background: #FFFFFF;
    border: 3px solid #0000EE;
    box-shadow: 4px 4px 0 #808080;
}

body[data-theme="web1"] .terminal-modal .modal-body {
    background-color: #FFFFFF !important;
    background: #FFFFFF;
    color: #000000;
}

body[data-theme="web1"] .terminal-modal .modal-header {
    background-color: #C0C0C0 !important;
    background: #C0C0C0;
    color: #000000;
    border-bottom: 2px solid #808080;
}

body[data-theme="web1"] .terminal-modal .modal-title {
    color: #000000;
}

body[data-theme="web1"] .terminal-modal .btn-close {
    color: #000000;
}

body[data-theme="web1"] .terminal-modal .text-muted {
    color: #666666;
}

body[data-theme="web1"] .terminal-modal .form-control {
    background-color: #FFFFFF !important;
    border: 2px inset #808080;
    color: #000000;
}

body[data-theme="web1"] .terminal-modal a {
    color: #0000EE;
    text-decoration: underline;
}

/* AI Era: Minimal modern design with rounded corners */
body[data-theme="modern"] .terminal-modal .modal-dialog,
body[data-theme="modern"].light-mode .terminal-modal .modal-dialog {
    background: transparent; /* Remove any blue background */
}

body[data-theme="modern"] .terminal-modal .modal-content,
body[data-theme="modern"].light-mode .terminal-modal .modal-content {
    background: #FFFFFF;
    border: none;
    border-radius: 12px !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Hide overflow for clean rounded corners */
}

body[data-theme="modern"] .terminal-modal .modal-header,
body[data-theme="modern"].light-mode .terminal-modal .modal-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem 2rem;
}

body[data-theme="modern"] .terminal-modal .modal-title,
body[data-theme="modern"].light-mode .terminal-modal .modal-title {
    color: #111827;
    font-weight: 400;
    font-size: 1.125rem;
    text-transform: none;
    letter-spacing: -0.01em;
}

body[data-theme="modern"] .terminal-modal .modal-body,
body[data-theme="modern"].light-mode .terminal-modal .modal-body {
    background: #FFFFFF;
    color: #374151;
    padding: 2rem;
    border-radius: 0 0 12px 12px !important; /* Rounded bottom corners */
}

body[data-theme="modern"] .terminal-modal .btn-close,
body[data-theme="modern"].light-mode .terminal-modal .btn-close {
    color: #9CA3AF;
    opacity: 1;
}

body[data-theme="modern"] .terminal-modal .btn-close:hover,
body[data-theme="modern"].light-mode .terminal-modal .btn-close:hover {
    color: #111827;
}

body[data-theme="modern"] .terminal-modal .form-label,
body[data-theme="modern"].light-mode .terminal-modal .form-label {
    color: #6B7280;
    font-weight: 400;
    font-size: 0.875rem;
    text-transform: none;
}

body[data-theme="modern"] .modal.terminal-modal .form-control,
body[data-theme="modern"] .terminal-modal .modal-dialog .form-control,
body[data-theme="modern"].light-mode .modal.terminal-modal .form-control,
body[data-theme="modern"].light-mode .terminal-modal .modal-dialog .form-control {
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    background: #F9FAFB !important;
    color: #111827 !important;
    font-size: 0.9375rem !important;
}

body[data-theme="modern"] .modal.terminal-modal .form-control:focus,
body[data-theme="modern"] .terminal-modal .modal-dialog .form-control:focus,
body[data-theme="modern"].light-mode .modal.terminal-modal .form-control:focus,
body[data-theme="modern"].light-mode .terminal-modal .modal-dialog .form-control:focus {
    border-color: #9CA3AF !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}

body[data-theme="modern"] .modal.terminal-modal .btn-primary,
body[data-theme="modern"] .terminal-modal .modal-dialog .btn-primary,
body[data-theme="modern"].light-mode .modal.terminal-modal .btn-primary,
body[data-theme="modern"].light-mode .terminal-modal .modal-dialog .btn-primary {
    background: #56DA77 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
}

body[data-theme="modern"] .modal.terminal-modal .btn-primary:hover,
body[data-theme="modern"] .terminal-modal .modal-dialog .btn-primary:hover,
body[data-theme="modern"].light-mode .modal.terminal-modal .btn-primary:hover,
body[data-theme="modern"].light-mode .terminal-modal .modal-dialog .btn-primary:hover {
    background: #4BC866 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(86, 218, 119, 0.3) !important;
}

body[data-theme="modern"] .modal.terminal-modal .btn-secondary,
body[data-theme="modern"] .terminal-modal .modal-dialog .btn-secondary,
body[data-theme="modern"].light-mode .modal.terminal-modal .btn-secondary,
body[data-theme="modern"].light-mode .terminal-modal .modal-dialog .btn-secondary {
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    color: #374151 !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
}

body[data-theme="modern"] .modal.terminal-modal .btn-secondary:hover,
body[data-theme="modern"] .terminal-modal .modal-dialog .btn-secondary:hover,
body[data-theme="modern"].light-mode .modal.terminal-modal .btn-secondary:hover,
body[data-theme="modern"].light-mode .terminal-modal .modal-dialog .btn-secondary:hover {
    background: #E5E7EB !important;
    border-color: #D1D5DB !important;
}

body[data-theme="modern"] .terminal-modal svg,
body[data-theme="modern"].light-mode .terminal-modal svg {
    color: #56DA77;
}

body[data-theme="modern"] .terminal-modal .text-muted,
body[data-theme="modern"] .terminal-modal small,
body[data-theme="modern"].light-mode .terminal-modal .text-muted,
body[data-theme="modern"].light-mode .terminal-modal small {
    color: #9CA3AF;
    font-size: 0.8125rem;
}

body[data-theme="modern"] .terminal-modal a,
body[data-theme="modern"].light-mode .terminal-modal a {
    color: #6B7280;
    text-decoration: underline;
    text-decoration-color: #D1D5DB;
}

body[data-theme="modern"] .terminal-modal small a,
body[data-theme="modern"].light-mode .terminal-modal small a {
    font-size: inherit;
}

body[data-theme="modern"] .terminal-modal a:hover,
body[data-theme="modern"].light-mode .terminal-modal a:hover {
    color: #111827;
    text-decoration-color: #9CA3AF;
}

/* AI Era: Login Form Styling */
body[data-theme="modern"] #loginFormContainer,
body[data-theme="modern"].light-mode #loginFormContainer {
    padding: 0.5rem 0;
}

body[data-theme="modern"] #loginFormContainer .form-label,
body[data-theme="modern"].light-mode #loginFormContainer .form-label {
    color: var(--text-color-dim);
    font-weight: 350;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    font-family: var(--font-family);
}

body[data-theme="modern"] #loginFormContainer .form-control,
body[data-theme="modern"].light-mode #loginFormContainer .form-control {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 350;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

body[data-theme="modern"] #loginFormContainer .form-control:focus,
body[data-theme="modern"].light-mode #loginFormContainer .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(86, 218, 119, 0.1);
}

body[data-theme="modern"] #loginFormContainer .form-control::placeholder,
body[data-theme="modern"].light-mode #loginFormContainer .form-control::placeholder {
    color: var(--text-color-dim);
    opacity: 0.6;
}

body[data-theme="modern"] #loginFormContainer .text-muted,
body[data-theme="modern"].light-mode #loginFormContainer .text-muted {
    color: var(--text-color-dim);
    font-size: 13px;
    font-weight: 350;
    line-height: 1.5;
    font-family: var(--font-family);
}

/* Login button - ENABLED state (groen zoals AI chat send button) */
body[data-theme="modern"] #loginFormContainer .btn-primary:not(:disabled),
body[data-theme="modern"].light-mode #loginFormContainer .btn-primary:not(:disabled) {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 350;
    text-transform: none;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body[data-theme="modern"] #loginFormContainer .btn-primary:not(:disabled):hover,
body[data-theme="modern"].light-mode #loginFormContainer .btn-primary:not(:disabled):hover {
    background: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
    color: #ffffff;
}

/* Login button - DISABLED state (grijs zoals AI chat send button) */
body[data-theme="modern"] #loginFormContainer .btn-primary:disabled,
body[data-theme="modern"].light-mode #loginFormContainer .btn-primary:disabled {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color-dim);
    cursor: not-allowed;
    opacity: 0.6;
    padding: 12px 24px;
    font-weight: 350;
    text-transform: none;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body[data-theme="modern"] #loginFormContainer a,
body[data-theme="modern"].light-mode #loginFormContainer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 350;
    transition: all 0.2s ease;
}

body[data-theme="modern"] #loginFormContainer a:hover,
body[data-theme="modern"].light-mode #loginFormContainer a:hover {
    text-decoration: underline;
}

/* AI Era: Login Success Message Styling */
body[data-theme="modern"] #loginSuccess,
body[data-theme="modern"].light-mode #loginSuccess {
    padding: 3rem 2rem;
}

body[data-theme="modern"] #loginSuccess h5,
body[data-theme="modern"].light-mode #loginSuccess h5 {
    color: var(--text-color);
    font-weight: 400;
    font-size: 18px;
    text-transform: none;
    margin-bottom: 1rem;
    font-family: var(--font-family);
}

body[data-theme="modern"] #loginSuccess p,
body[data-theme="modern"].light-mode #loginSuccess p {
    color: var(--text-color-dim);
    font-size: 15px;
    font-weight: 350;
    line-height: 1.6;
    font-family: var(--font-family);
}

body[data-theme="modern"] #loginSuccess small,
body[data-theme="modern"].light-mode #loginSuccess small {
    color: var(--text-color-dim);
    font-size: 13px;
    font-weight: 350;
    opacity: 0.8;
}

body[data-theme="modern"] #loginSuccess svg,
body[data-theme="modern"].light-mode #loginSuccess svg {
    stroke: var(--accent-color);
    width: 48px;
    height: 48px;
}

body[data-theme="modern"] #loginSuccess .btn-secondary,
body[data-theme="modern"].light-mode #loginSuccess .btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color-dim);
    padding: 12px 24px;
    font-weight: 350;
    font-size: 15px;
    text-transform: none;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body[data-theme="modern"] #loginSuccess .btn-secondary:hover,
body[data-theme="modern"].light-mode #loginSuccess .btn-secondary:hover {
    background: rgba(86, 218, 119, 0.1);
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* ========================================
   END THEME-SPECIFIC LOGIN MODAL STYLING
   ======================================== */

/* Fix select dropdown in modals */
.terminal-modal select.form-control,
.terminal-modal select.terminal-input {
    background-color: var(--bg-color) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-color) !important;
    font-family: var(--font-family);
}

.terminal-modal select.form-control option,
.terminal-modal select.terminal-input option {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Old Theme Switcher - Deprecated */
/* .theme-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    display: none;
}

.theme-switcher select {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    font-family: var(--font-family);
} */

/* Floating Theme Switcher - Modern Implementation */
.floating-theme-switcher {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.theme-switcher-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-switcher-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* CSS Tooltip for theme button */
.theme-switcher-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    width: 400px;
    white-space: normal;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.theme-switcher-btn:hover::before {
    opacity: 1;
}

/* Arrow for tooltip */
.theme-switcher-btn::after {
    content: '';
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.theme-switcher-btn:hover::after {
    opacity: 1;
}

.theme-switcher-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-icon {
    width: 48px;
    height: 48px;
    pointer-events: none;
    border-radius: 8px;
}

.theme-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: white;
    text-align: center;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: none;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
}

/* Dynamic text color based on theme background */
body[data-theme="web1"] .theme-label {
    color: black;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

body[data-theme="win95"] .theme-label {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Theme Dropdown - Force modern styling over Bootstrap overrides */
.theme-dropdown {
    position: absolute !important;
    bottom: 85px !important;
    right: -15px !important;
    width: 220px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 12px !important;
    z-index: 10000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 0 !important;
    transform: none !important;
}

/* Theme Option - Force modern styling over Bootstrap overrides */
.theme-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    background: transparent !important;
    color: rgba(0, 0, 0, 0.8) !important;
    text-transform: none !important;
    margin: 0 !important;
    border: none !important;
}

.theme-option:hover,
.theme-option:focus {
    background: rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
    color: rgba(0, 0, 0, 0.9) !important;
}

.theme-era {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: rgba(0, 0, 0, 0.5) !important;
    min-width: 32px !important;
    text-transform: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.theme-name {
    flex: 1 !important;
    font-weight: 500 !important;
    color: rgba(0, 0, 0, 0.8) !important;
    text-transform: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    line-height: 1 !important;
    display: inline-block !important;
}


.theme-preview {
    width: 14px !important;
    height: 14px !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Theme Preview Colors */
.theme-option[data-theme="terminal"] .theme-preview {
    background: #00FF00;
    border: 1px solid transparent;
}

.theme-option[data-theme="amber"] .theme-preview {
    background: #FFB000;
    border: 1px solid transparent;
}

.theme-option[data-theme="ega"] .theme-preview {
    background: linear-gradient(45deg, #000080, #FFFF00);
    border: 1px solid transparent;
}

.theme-option[data-theme="cga"] .theme-preview {
    background: linear-gradient(45deg, #00FFFF, #FF00FF);
    border: 1px solid transparent;
}

.theme-option[data-theme="win95"] .theme-preview {
    background: #C0C0C0;
    border: 1px solid #808080;
}

.theme-option[data-theme="web1"] .theme-preview {
    background: linear-gradient(45deg, #FF1493, #FFD700, #00FF7F, #1E90FF);
    animation: web1-preview-rainbow 2s linear infinite;
    border: 1px solid transparent;
}

.theme-option[data-theme="web2"] .theme-preview {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: 1px solid transparent;
}

.theme-option[data-theme="modern"] .theme-preview {
    background: linear-gradient(45deg, #56da77, #3ec05f);
    border: 1px solid transparent;
}

@keyframes web1-preview-rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Force visibility and consistent styling in all themes */
body[data-theme] .floating-theme-switcher,
body .floating-theme-switcher {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* REMOVED: Web1 and Web2 now use default positioning (fixed, bottom: 150px, right: 20px) */
/* This ensures consistent positioning across all themes */

body[data-theme="web2"] .theme-switcher-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

body[data-theme="web2"] .theme-switcher-btn:hover {
    border-color: #56da77;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body[data-theme="web2"] .theme-label {
    color: #718096;
    font-size: 0.75rem;
    font-weight: 500;
}

/* AI Era: theme-label colors for light/dark mode */
body[data-theme="modern"]:not(.light-mode) .theme-label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

body[data-theme="modern"].light-mode .theme-label {
    color: rgba(0, 0, 0, 0.7);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* REMOVED: AI Era now uses default positioning (fixed, bottom: 150px, right: 20px) */
/* This ensures consistent positioning across all themes */

/* Force consistent font styling for floating theme switcher across ALL themes */
body[data-theme] .floating-theme-switcher,
body[data-theme] .floating-theme-switcher *,
body .floating-theme-switcher,
body .floating-theme-switcher * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: auto !important;
    -moz-osx-font-smoothing: auto !important;
    letter-spacing: normal !important;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .theme-switcher-btn {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .theme-dropdown {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* AI ERA THEME SWITCHER - MUST COME AFTER @supports TO OVERRIDE */
/* Dark mode (default) */
body[data-theme="modern"]:not(.light-mode) .theme-dropdown {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="modern"]:not(.light-mode) .theme-option {
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="modern"]:not(.light-mode) .theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

body[data-theme="modern"]:not(.light-mode) .theme-era {
    color: rgba(255, 255, 255, 0.5);
}

body[data-theme="modern"]:not(.light-mode) .theme-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Light mode */
body[data-theme="modern"].light-mode .theme-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="modern"].light-mode .theme-option {
    color: rgba(0, 0, 0, 0.8);
}

body[data-theme="modern"].light-mode .theme-option:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.9);
}

body[data-theme="modern"].light-mode .theme-era {
    color: rgba(0, 0, 0, 0.5);
}

body[data-theme="modern"].light-mode .theme-name {
    color: rgba(0, 0, 0, 0.8);
}

/* CRITICAL FIX: Restore consistent font-weight for theme dropdown in all themes */
/* These rules override the universal font-weight changes in web1, web2, and modern themes */
body[data-theme="web1"] .theme-era,
body[data-theme="web2"] .theme-era,
body[data-theme="modern"] .theme-era,
body[data-theme="modern"].light-mode .theme-era {
    font-weight: 600;
}

body[data-theme="web1"] .theme-name,
body[data-theme="web2"] .theme-name,
body[data-theme="modern"] .theme-name,
body[data-theme="modern"].light-mode .theme-name {
    font-weight: 500;
}

body[data-theme="web1"] .theme-option,
body[data-theme="web2"] .theme-option,
body[data-theme="modern"] .theme-option,
body[data-theme="modern"].light-mode .theme-option {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border: 1px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color-dim);
}

/* Scanline Effect (subtle) */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 0, 0.02) 50%,
        transparent 100%
    );
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Text Glow Effect - Only for terminal themes */
body[data-theme="terminal"] .terminal-text,
body[data-theme="terminal"] .navbar-brand,
body[data-theme="terminal"] h1,
body[data-theme="terminal"] h2,
body[data-theme="terminal"] h3,
body[data-theme="terminal"] h4,
body[data-theme="terminal"] h5,
body[data-theme="terminal"] h6,
body[data-theme="amber"] .terminal-text,
body[data-theme="amber"] .navbar-brand,
body[data-theme="amber"] h1,
body[data-theme="amber"] h2,
body[data-theme="amber"] h3,
body[data-theme="amber"] h4,
body[data-theme="amber"] h5,
body[data-theme="amber"] h6 {
    text-shadow: 0 0 5px var(--shadow-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .prompt-section {
        position: relative;
        margin-top: 40px;
    }
    
    .activity-card {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-terminal {
    color: var(--text-color) !important;
}

.bg-terminal {
    background-color: var(--bg-color) !important;
}

.border-terminal {
    border-color: var(--border-color) !important;
}

/* Content padding for fixed prompt */
body {
    padding-bottom: 300px; /* Space for fixed prompt */
}

/* Theme Variations (prepared for switching) */
body[data-theme="amber"] {
    --text-color: #FFB000;
    --text-color-dim: #AA7000;
    --accent-color: #FFB000;
    --border-color: #FFB000;
    --shadow-color: rgba(255, 176, 0, 0.3);
    --font-family: 'Perfect DOS VGA 437', 'Courier New', Courier, monospace;
}

/* EGA/VGA Theme - 16 Color Palette */
body[data-theme="ega"] {
    --bg-color: #000080;          /* Dark Blue background */
    --text-color: #FFFFFF;        /* Bright White */
    --text-color-dim: #C0C0C0;    /* Light Gray */
    --accent-color: #00FFFF;      /* Bright Cyan */
    --border-color: #FFFF00;      /* Bright Yellow */
    --shadow-color: rgba(255, 255, 0, 0.4);
    --success-color: #00FF00;     /* Bright Green */
    --warning-color: #FF8000;     /* Orange */
    --error-color: #FF0000;       /* Bright Red */
    --info-color: #00FFFF;        /* Cyan */
    --purple-color: #FF00FF;      /* Bright Magenta */
    --font-family: 'More Perfect DOS VGA', 'Consolas', 'Liberation Mono', monospace;
}

/* EGA Font Styling - 8x16 bitmap font simulation */
body[data-theme="ega"] {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    /* Simulate pixelated bitmap font */
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

/* EGA Graphics Interface Elements - Bitmap Font */
body[data-theme="ega"] .navbar-brand,
body[data-theme="ega"] .btn-terminal,
body[data-theme="ega"] .form-label,
body[data-theme="ega"] .card-title,
body[data-theme="ega"] .section-title,
body[data-theme="ega"] h1,
body[data-theme="ega"] h2,
body[data-theme="ega"] h3,
body[data-theme="ega"] h4,
body[data-theme="ega"] h5,
body[data-theme="ega"] h6 {
    font-family: var(--font-family);
    font-weight: bold;
    letter-spacing: 0.5px;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
}

/* EGA Command Line - Keep Original Monospace Font */
body[data-theme="ega"] .prompt-input,
body[data-theme="ega"] .prompt-prefix,
body[data-theme="ega"] .prompt-output,
body[data-theme="ega"] .prompt-output p,
body[data-theme="ega"] #terminal-cursor {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: normal;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

/* EGA Multi-Color Effects */
body[data-theme="ega"] .terminal-window {
    border: 3px solid var(--border-color); /* Solid yellow border */
    /* No gradient shadows - use solid border effect instead */
    outline: 1px solid var(--accent-color);
}

body[data-theme="ega"] .terminal-header {
    background: var(--border-color); /* Solid yellow background */
    color: var(--bg-color);
    font-weight: bold;
    text-shadow: none;
    /* EGA-style dithered pattern using CSS repeating pattern */
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            var(--accent-color) 2px,
            var(--accent-color) 4px);
}

body[data-theme="ega"] .activity-card {
    border: 2px solid var(--border-color);
    background: var(--bg-color); /* Solid background */
    /* Add subtle pattern for texture without gradients */
    background-image:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 8px,
            rgba(255,255,255,0.05) 8px,
            rgba(255,255,255,0.05) 10px);
}

body[data-theme="ega"] .activity-card:nth-child(1) {
    border-color: var(--success-color);
    /* No glow effects - use thick solid borders instead */
    border-width: 3px;
}

body[data-theme="ega"] .activity-card:nth-child(2) {
    border-color: var(--accent-color);
    border-width: 3px;
}

body[data-theme="ega"] .activity-card:nth-child(3) {
    border-color: var(--purple-color);
    border-width: 3px;
}

body[data-theme="ega"] .navbar {
    background: var(--bg-color); /* Solid blue background */
    border-bottom: 4px solid var(--border-color);
    /* Add subtle dithering pattern */
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255,255,0,0.1) 2px,
            rgba(255,255,0,0.1) 3px);
}

body[data-theme="ega"] .btn-terminal,
body[data-theme="ega"] .btn-primary {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--border-color);
    text-shadow: none; /* No glow effects */
}

body[data-theme="ega"] .btn-terminal:hover,
body[data-theme="ega"] .btn-primary:hover {
    background: var(--border-color);
    color: var(--bg-color);
    border-width: 3px; /* Thicker border instead of glow */
}

/* EGA Theme Switch Icon */
body[data-theme="ega"] .theme-switch-icon {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--border-color);
    font-weight: bold;
}

body[data-theme="ega"] .theme-switch-icon:hover {
    background: var(--border-color);
    color: var(--bg-color);
    border-width: 3px;
}

body[data-theme="cga"] {
    --bg-color: #000000;
    --text-color: #00FFFF;
    --text-color-dim: #FF00FF;
    --accent-color: #FFFFFF;
    --border-color: #00FFFF;
    --shadow-color: rgba(0, 255, 255, 0.3);
}

/* Web 1.0 Theme - Classic Early Internet (1994-1999) */
body[data-theme="web1"] {
    --bg-color: #FFFFFF;
    --text-color: #000000;
    --text-color-dim: #666666;
    --accent-color: #0000EE;
    --border-color: #FF0080;
    --shadow-color: rgba(255, 0, 128, 0.3);
    --link-color: #0000EE;
    --visited-color: #551A8B;
    --header-bg: linear-gradient(45deg, #FF1493, #FFD700, #00FF7F, #1E90FF);
    --font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(45deg, #FFE4E1 25%, #E0FFFF 25%, #E0FFFF 50%, #FFF8DC 50%, #FFF8DC 75%, #F0E68C 75%);
    background-size: 40px 40px;
    background-attachment: scroll;
    /* REMOVED: animation: web1-bg-rainbow 10s linear infinite !important; */
    /* Filter animations on body break position:fixed - causes stacking context issue */
    font-family: var(--font-family);
    min-height: 100vh;
}

/* Container, row, col transparent backgrounds - FORCE IT! */
body[data-theme="web1"] .container,
body[data-theme="web1"] .row,
body[data-theme="web1"] [class*="col-"],
body[data-theme="web1"] section,
body[data-theme="web1"] div:not(#web10-logo):not(#web10-guestbook):not(#web10-webring):not(#web10-nav) {
    background: transparent;
    background-color: transparent;
}

/* Web 1.0: Hide boot sequence (terminal-specific feature) */
body[data-theme="web1"] #terminal-boot-sequence {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Web 1.0 Logo - ensure it's visible */
body[data-theme="web1"] #web10-logo {
    display: block !important;
    font-size: 28px;
    font-weight: bold;
    color: #0000EE;
    text-align: center;
    padding: 30px 20px 10px 20px;
    font-family: 'Times New Roman', Times, serif;
    text-decoration: underline;
    background: transparent;
    z-index: 99999;
}

/* Hide modern elements in Web 1.0 */
/* Keep prompt visible for easter eggs in Web 1.0 */
body[data-theme="web1"] .win95-taskbar,
body[data-theme="web1"] #win95-desktop-icons,
body[data-theme="web1"] .win95-window-controls {
    display: none !important;
}

/* Web 1.0 Background Pattern */
body[data-theme="web1"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, #FFE4E1 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #E0E0E0 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
    animation: web1-bg-move 20s linear infinite;
}

@keyframes web1-bg-move {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

/* Web 1.0 Typography */
body[data-theme="web1"] h1,
body[data-theme="web1"] h2,
body[data-theme="web1"] h3,
body[data-theme="web1"] h4,
body[data-theme="web1"] h5,
body[data-theme="web1"] h6 {
    color: var(--text-color);
    font-family: var(--font-family);
    text-transform: none;
    font-weight: bold;
    text-shadow: none;
}

body[data-theme="web1"] h1 {
    font-size: 24px;
    text-align: center;
    color: #800080;
    text-decoration: underline;
    margin: 20px 0;
}

body[data-theme="web1"] h2 {
    font-size: 18px;
    color: #008000;
    margin: 15px 0;
}

/* Web 1.0 Links */
body[data-theme="web1"] a,
body[data-theme="web1"] .nav-link {
    color: var(--link-color);
    text-decoration: underline;
    font-family: var(--font-family);
}

body[data-theme="web1"] a:visited,
body[data-theme="web1"] .nav-link:visited {
    color: var(--visited-color);
}

body[data-theme="web1"] a:hover,
body[data-theme="web1"] .nav-link:hover {
    color: #FF0000;
    background: #FFFF00;
}

/* Web 1.0 Navbar */
/* Hide navbar completely, logo will be shown elsewhere */
body[data-theme="web1"] .navbar {
    display: none !important;
}

/* Show logo in hero section instead */
body[data-theme="web1"] .hero-section {
    background: transparent;
    padding-top: 5px;
    margin-top: 0;
}

body[data-theme="web1"] .terminal-logo-header {
    display: none !important;
}

/* Web 1.0 simple text logo */
/* Logo is added via JavaScript, not CSS ::before (to prevent duplicates) */

/* Web 1.0 Simple Navigation Links (old school style) */
#web10-nav {
    display: none !important;
}

body[data-theme="web1"] #web10-nav {
    display: block !important;
    position: static;
    background: transparent;
    border: none;
    padding: 10px 20px;
    box-shadow: none;
    margin: 0 0 10px 0;
    font-family: 'Times New Roman', Times, serif;
}

body[data-theme="web1"] #web10-nav h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #0000EE;
    text-decoration: underline;
    text-align: left;
    animation: none;
    text-shadow: none;
}

body[data-theme="web1"] #web10-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body[data-theme="web1"] #web10-nav li {
    margin: 5px 0;
}

body[data-theme="web1"] #web10-nav li:before {
    content: '';
    display: none !important;
    animation: none;
}

body[data-theme="web1"] #web10-nav a {
    color: #0000EE;
    text-decoration: underline;
    font-size: 14px;
}

body[data-theme="web1"] #web10-nav a:visited {
    color: #551A8B;
}

body[data-theme="web1"] #web10-nav a:hover {
    color: #FF0000;
    background: #FFFF00;
}

body[data-theme="web1"] .navbar-brand {
    color: #800080;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

/* Web 1.0 Content Areas */
body[data-theme="web1"] .terminal-window {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    position: static;
    cursor: default;
    animation: none;
}

body[data-theme="web1"] .terminal-header {
    background: transparent;
    animation: none;
    color: #0000EE;
    text-shadow: none;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: default;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
}

body[data-theme="web1"] .terminal-content {
    background: transparent;
    color: #000000;
    padding: 20px;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    border: none;
    position: relative;
    overflow: visible;
}

/* Web 1.0 Buttons */
body[data-theme="web1"] .btn-terminal,
body[data-theme="web1"] .btn-primary {
    background: linear-gradient(45deg, #FF69B4, #FFD700, #00FA9A);
    border: 3px solid #FF0080;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: bold;
    padding: 8px 16px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #000000;
    box-shadow: 0 0 10px #FF00FF;
    animation: web1-button-glow 2s ease-in-out infinite alternate;
}

body[data-theme="web1"] .btn-terminal:hover,
body[data-theme="web1"] .btn-primary:hover {
    background: linear-gradient(45deg, #FFD700, #00FA9A, #FF69B4);
    box-shadow: 0 0 20px #00FFFF;
    transform: scale(1.1);
}

/* Web 1.0 Prompt Styling */
/* Hide prompt section in Web 1.0 - use guestbook instead */
body[data-theme="web1"] .prompt-section {
    display: none !important;
}

/* Hide guestbook by default in all themes */
#web10-guestbook {
    display: none !important;
}

/* Web 1.0 Guestbook (top right corner) - ONLY visible in Web 1.0 */
body[data-theme="web1"] #web10-guestbook {
    display: block !important;
    position: static;
    width: auto;
    max-width: 600px;
    background: transparent;
    border: 2px solid #0000EE;
    padding: 15px;
    box-shadow: none;
    margin: 20px;
}

body[data-theme="web1"] #web10-guestbook .guestbook-title {
    color: #0000EE;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    font-weight: bold;
    text-shadow: none;
    margin: 0 0 10px 0;
    text-align: center;
    animation: none;
}

body[data-theme="web1"] #web10-guestbook input {
    width: 100%;
    padding: 5px;
    border: 2px solid #0000EE;
    background: #FFFFFF;
    color: #000000;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    margin-bottom: 8px;
}

body[data-theme="web1"] #web10-guestbook button {
    width: 100%;
    padding: 5px;
    background: #0000EE;
    border: 2px outset #0000EE;
    color: #FFFFFF;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

body[data-theme="web1"] #web10-guestbook button:hover {
    background: #0000CC;
    border: 2px inset #0000EE;
}

/* Web 1.0 Webring (bottom right corner) - ONLY visible in Web 1.0 */
#web10-webring {
    display: none !important;
}

body[data-theme="web1"] #web10-webring {
    display: block !important;
    position: static;
    width: auto;
    max-width: 400px;
    background: transparent;
    border: 2px solid #0000EE;
    padding: 15px;
    box-shadow: none;
    margin: 20px;
    font-family: 'Times New Roman', Times, serif;
}

body[data-theme="web1"] #web10-webring a {
    color: #0000EE;
    text-decoration: none;
}

body[data-theme="web1"] #web10-webring a:hover {
    color: #FF0000;
    text-decoration: underline;
}

body[data-theme="web1"] .prompt-output {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #FF00FF;
    color: #000080;
}

body[data-theme="web1"] .prompt-prefix {
    color: #FFFFFF;
    text-shadow: 2px 2px 4px #000000;
    font-weight: bold;
}

body[data-theme="web1"] .prompt-input {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px #000000;
}

body[data-theme="web1"] .btn-terminal:active,
body[data-theme="web1"] .btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px #FF00FF;
}

/* Web 1.0 Forms */
body[data-theme="web1"] .form-control,
body[data-theme="web1"] .terminal-input {
    background: linear-gradient(45deg, #FFFACD, #FFE4E1, #E0FFFF);
    border: 3px solid #FF0080;
    border-style: dotted;
    color: #000080;
    font-family: var(--font-family);
    font-size: 14px;
    padding: 8px;
    box-shadow: inset 0 0 10px #FFFF00;
}

body[data-theme="web1"] .form-label {
    color: #800080;
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 14px;
    text-transform: none;
    text-shadow: 1px 1px 2px #FFD700;
}

/* Web 1.0 Theme Switch Icon */
body[data-theme="web1"] .theme-switch-icon {
    background: linear-gradient(45deg, #FF1493, #00FF7F, #1E90FF, #FFD700);
    border: 2px solid #FF00FF;
    color: #FFFFFF;
    font-size: 16px;
    text-shadow: 1px 1px 2px #000000;
    animation: web1-theme-spin 3s linear infinite;
}

body[data-theme="web1"] .theme-switch-icon:hover {
    animation: web1-theme-spin 0.5s linear infinite;
    box-shadow: 0 0 15px #00FFFF;
}

/* Web 1.0 Special Effects */
body[data-theme="web1"] .section-title {
    color: #800080;
    text-align: center;
    font-size: 18px;
    text-decoration: underline;
    animation: web1-blink 2s infinite;
    border: none;
    padding: 10px 0;
    margin: 20px 0;
}

@keyframes web1-blink {
    0%, 50% { color: #800080; }
    51%, 100% { color: #FF0000; }
}

/* Web 1.0 Activity Cards */
body[data-theme="web1"] .activity-card {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 0 30px 0;
    animation: none;
    position: relative;
    overflow: visible;
}

body[data-theme="web1"] .activity-card:nth-child(1) .terminal-header,
body[data-theme="web1"] .activity-card:nth-child(1) h3 {
    background: transparent;
    color: #0000EE;
}

body[data-theme="web1"] .activity-card:nth-child(2) .terminal-header,
body[data-theme="web1"] .activity-card:nth-child(2) h3 {
    background: transparent;
    color: #0000EE;
}

body[data-theme="web1"] .activity-card:nth-child(3) .terminal-header,
body[data-theme="web1"] .activity-card:nth-child(3) h3 {
    background: transparent;
    color: #0000EE;
}

/* Web 1.0 Scrolling Text */
body[data-theme="web1"] .hero-section h1 {
    animation: web1-scroll 10s linear infinite;
    white-space: nowrap;
    overflow: hidden;
    border: 2px solid #800080;
    background: #FFFACD;
    padding: 10px;
    color: #800080;
}

@keyframes web1-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Web 1.0 List Styling */
body[data-theme="web1"] ul {
    list-style-type: none;
    padding-left: 0;
}

body[data-theme="web1"] li:before {
    content: "🔸 ";
    color: #FF6347;
    animation: web1-bullet-spin 3s linear infinite;
}

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

/* Web 1.0 Counter */
body[data-theme="web1"]::after {
    content: "👁️ You are visitor #" counter(web1-visitors) " 👁️";
    counter-increment: web1-visitors;
    display: block !important;
    text-align: center;
    background: #FFFF00;
    border: 2px solid #FF0000;
    padding: 10px;
    margin: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #FF0000;
    animation: web1-visitor-blink 1s infinite;
}

body[data-theme="web1"] {
    counter-reset: web1-visitors 1337;
}

@keyframes web1-visitor-blink {
    0%, 50% { background: #FFFF00; color: #FF0000; }
    51%, 100% { background: #FF0000; color: #FFFF00; }
}

/* Web 1.0 "Under Construction" */
/* Remove Under Construction banner */

@keyframes web1-construction {
    0%, 33% { background: #FFFF00; color: #FF0000; }
    34%, 66% { background: #FF0000; color: #FFFF00; }
    67%, 100% { background: #000000; color: #FFFF00; }
}

/* Additional Web 1.0 Animations */
@keyframes web1-bg-rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes web1-navbar-glow {
    0% { box-shadow: 0 0 20px #FF00FF; }
    100% { box-shadow: 0 0 30px #00FFFF, 0 0 40px #FFFF00; }
}

@keyframes web1-content-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes web1-header-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes web1-button-glow {
    0% { box-shadow: 0 0 10px #FF00FF; }
    100% { box-shadow: 0 0 20px #00FFFF, 0 0 30px #FFFF00; }
}

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

@keyframes web1-card-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Web 1.0 Scrolling Text Banner */
body[data-theme="web1"] .container::before {
    display: none !important;
}

@keyframes web1-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Web 1.0 Sparkle Effects */
body[data-theme="web1"] .terminal-content::after {
    content: "✨ ⭐ ✨ ⭐ ✨";
    position: absolute;
    top: 10px;
    right: 10px;
    color: #FFD700;
    font-size: 12px;
    animation: web1-sparkle 2s ease-in-out infinite;
}

@keyframes web1-sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}

/* ============================================
   WEB 2.0 THEME STYLING - Modern 2024 Style (Light)
   ============================================ */

/* Web 2.0: Hide boot sequence (terminal-specific feature) */
body[data-theme="web2"] #terminal-boot-sequence {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Web 2.0: Adjust padding and spacing when boot sequence is hidden */
body[data-theme="web2"] .terminal-content {
    padding: 0 2rem 2rem 2rem; /* Remove top padding only */
}

/* Web 2.0: Remove top margin from terminal-menu (has mt-4 class) */
body[data-theme="web2"] .terminal-menu {
    margin-top: 0;
}

/* Base Web 2.0 Styling - Modern 2025 - UPDATED VERSION */
body[data-theme="web2"] {
    font-family: 'Roboto', 'Verdana', 'Arial', sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    font-size: 16px;
    /* TEST: If you see this comment in DevTools, CSS is loading */
}

/* Remove ALL text shadows and glows in Web 2.0 */
body[data-theme="web2"] *,
body[data-theme="web2"] .terminal-text,
body[data-theme="web2"] .navbar-brand,
body[data-theme="web2"] p,
body[data-theme="web2"] span,
body[data-theme="web2"] a,
body[data-theme="web2"] .form-label {
    text-shadow: none;
}

/* Navigation Bar - Flat Modern Style - OVERRIDE BOOTSTRAP */
body[data-theme="web2"] .navbar,
body[data-theme="web2"] .navbar.navbar-dark,
body[data-theme="web2"] .navbar.bg-dark {
    background: #FFFFFF;
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #E2E8F0;
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

body[data-theme="web2"] .navbar-brand,
body[data-theme="web2"] .navbar-dark .navbar-brand {
    font-size: 1.125rem;
    font-weight: 500;
    color: #0F172A;
    display: flex !important;
    align-items: center;
    gap: 0.375rem;
}

body[data-theme="web2"] .logo-container {
    display: flex !important;
    align-items: center;
}

body[data-theme="web2"] #era-logo {
    max-height: 36px;
    width: auto;
}

body[data-theme="web2"] #ascii-logo {
    display: none !important;
}

body[data-theme="web2"] .nav-link,
body[data-theme="web2"] .navbar-dark .nav-link {
    color: #475569;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    transition: color 0.15s ease;
    border-radius: 6px;
    margin: 0 0.125rem;
}

body[data-theme="web2"] .nav-link:hover,
body[data-theme="web2"] .navbar-dark .nav-link:hover {
    color: #56da77;
}

body[data-theme="web2"] .dropdown-menu {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
}

body[data-theme="web2"] .dropdown-item {
    color: #475569;
    transition: all 0.15s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0.125rem 0;
}

body[data-theme="web2"] .dropdown-item:hover {
    background: rgba(86, 218, 119, 0.08);
    color: #56da77;
}

/* Hero Section - REMOVED: Conflicted with theme fix at top of file */
/* .hero-section is now hidden via display:none at line ~15-24 */

/* Web 2.0 Headings - Modern flat style */
body[data-theme="web2"] h1,
body[data-theme="web2"] h2,
body[data-theme="web2"] h3,
body[data-theme="web2"] h4,
body[data-theme="web2"] h5,
body[data-theme="web2"] h6 {
    color: #0F172A;
    font-family: 'Roboto', 'Verdana', 'Arial', sans-serif;
    text-transform: none;
    font-weight: 600;
    text-shadow: none;
}

body[data-theme="web2"] h1 {
    font-size: 2rem;
}

body[data-theme="web2"] h2 {
    font-size: 1.5rem;
}

body[data-theme="web2"] h3 {
    font-size: 1.25rem;
}

/* Section Titles */
body[data-theme="web2"] .section-title {
    color: #0F172A;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: none;
    text-shadow: none;
}

/* Cards/Windows - Flat modern style - FORCE WHITE */
body[data-theme="web2"] .terminal-window,
body[data-theme="web2"] div.terminal-window,
body[data-theme="web2"] section .terminal-window {
    background: white;
    background-color: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
    overflow: hidden;
}

body[data-theme="web2"] .terminal-window:hover,
body[data-theme="web2"] div.terminal-window:hover {
    border-color: #CBD5E0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

body[data-theme="web2"] .terminal-header {
    display: none !important; /* No window chrome in Web 2.0 */
}

body[data-theme="web2"] .terminal-content,
body[data-theme="web2"] div.terminal-content {
    background: transparent;
    color: #475569;
    padding: 2rem;
}

body[data-theme="web2"] .terminal-text,
body[data-theme="web2"] p.terminal-text,
body[data-theme="web2"] h1.terminal-text,
body[data-theme="web2"] h2.terminal-text,
body[data-theme="web2"] h3.terminal-text {
    color: #475569;
    font-family: 'Roboto', 'Verdana', sans-serif;
    line-height: 1.7;
    font-size: 1rem;
}

body[data-theme="web2"] .terminal-text strong {
    color: #0F172A;
    font-weight: 600;
}

/* Buttons - Flat modern style - FORCE GREEN */
body[data-theme="web2"] .btn-primary,
body[data-theme="web2"] .btn-terminal,
body[data-theme="web2"] button.btn-primary,
body[data-theme="web2"] button.btn-terminal,
body[data-theme="web2"] a.btn-primary,
body[data-theme="web2"] a.btn-terminal {
    background: #56da77;
    background-color: #56da77 !important;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.15s ease;
    text-transform: none;
    box-shadow: none;
}

body[data-theme="web2"] .btn-primary:hover,
body[data-theme="web2"] .btn-terminal:hover,
body[data-theme="web2"] button.btn-primary:hover,
body[data-theme="web2"] button.btn-terminal:hover {
    background: #48c969;
    background-color: #48c969 !important;
    box-shadow: none;
    color: white;
    transform: translateY(-1px);
}

/* Forms - Modern style with ring focus */
body[data-theme="web2"] .form-label {
    color: #0F172A;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

body[data-theme="web2"] .form-control,
body[data-theme="web2"] .terminal-input {
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Roboto', sans-serif;
    color: #0F172A;
    background: white;
    font-size: 1rem;
    transition: all 0.15s ease;
    box-shadow: none;
}

body[data-theme="web2"] .form-control:focus,
body[data-theme="web2"] .terminal-input:focus {
    border-color: #56da77;
    box-shadow: 0 0 0 3px rgba(86, 218, 119, 0.1);
    outline: none;
}

/* Search Bar - Modern Style */
body[data-theme="web2"] .web2-search-container {
    display: flex !important;
    align-items: center;
    margin-left: auto;
}

body[data-theme="web2"] .web2-search {
    display: flex !important;
    align-items: center;
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    width: 240px;
}

body[data-theme="web2"] .web2-search:focus-within {
    background: white;
    border-color: #56da77;
    box-shadow: 0 0 0 3px rgba(86, 218, 119, 0.1);
}

body[data-theme="web2"] .web2-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 0.125rem 0.5rem;
    font-family: 'Roboto', sans-serif;
    color: #2D3748;
    font-size: 0.875rem;
}

body[data-theme="web2"] .web2-search-input::placeholder {
    color: #A0AEC0;
}

body[data-theme="web2"] .web2-search-icon {
    color: #CBD5E0;
    margin-right: 0.5rem;
    font-size: 1rem;
    display: flex !important;
    align-items: center;
}

/* Sections Background & Spacing - More whitespace - FORCE BACKGROUNDS */
body[data-theme="web2"] .intro-section,
body[data-theme="web2"] .over-section,
body[data-theme="web2"] .activities-section,
body[data-theme="web2"] .contact-section,
body[data-theme="web2"] section.intro-section,
body[data-theme="web2"] section.over-section,
body[data-theme="web2"] section.activities-section,
body[data-theme="web2"] section.contact-section {
    padding: 2rem 0; /* Reduced from 6rem to 2rem */
}

body[data-theme="web2"] .intro-section,
body[data-theme="web2"] section.intro-section {
    background: #F8FAFC;
    background-color: #F8FAFC !important;
}

body[data-theme="web2"] .over-section,
body[data-theme="web2"] section.over-section {
    background: white;
    background-color: white;
}

body[data-theme="web2"] .activities-section,
body[data-theme="web2"] section.activities-section {
    background: #F8FAFC;
    background-color: #F8FAFC !important;
}

body[data-theme="web2"] .contact-section,
body[data-theme="web2"] section.contact-section {
    background: white;
    background-color: white;
}

/* Modern Card Grid Spacing */
body[data-theme="web2"] .row > [class*="col-"] {
    margin-bottom: 2rem;
}

body[data-theme="web2"] .container {
    max-width: 1280px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Modal Styling */
body[data-theme="web2"] .terminal-modal .modal-content {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body[data-theme="web2"] .terminal-modal .modal-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
}

body[data-theme="web2"] .terminal-modal .modal-title {
    color: #111827;
    font-weight: 600;
    font-size: 1.25rem;
}

body[data-theme="web2"] .terminal-modal .modal-body {
    padding: 1.5rem;
}

/* Hide Elements That Don't Belong in Web 2.0 */
body[data-theme="web2"] .prompt-section {
    display: none !important;
}

body[data-theme="web2"] #web10-nav,
body[data-theme="web2"] #web10-guestbook,
body[data-theme="web2"] #web10-webring,
body[data-theme="web2"] #win95-desktop-icons,
body[data-theme="web2"] #win95Taskbar,
body[data-theme="web2"] .ai-sidebar,
body[data-theme="web2"] .ai-chat-container,
body[data-theme="web2"] .ai-mobile-toggle-btn {
    display: none !important;
}

/* ============================================
   CONTENT VISIBILITY - Extended Content Strategy
   ============================================ */

/* Extended content sections - Hidden by default in all themes */
.product-details-extended,
.success-stories-detailed,
.case-studies-section,
.pricing-tables-full,
.testimonials-extended,
.blog-section,
.faq-extended,
.landing-pages-content {
    display: none;
}

/* Show extended content in modern themes (Web 2.0 + AI Era) */
body[data-theme="web2"] .product-details-extended,
body[data-theme="web2"] .success-stories-detailed,
body[data-theme="web2"] .case-studies-section,
body[data-theme="web2"] .pricing-tables-full,
body[data-theme="web2"] .testimonials-extended,
body[data-theme="web2"] .blog-section,
body[data-theme="web2"] .faq-extended,
body[data-theme="web2"] .landing-pages-content,
body[data-theme="modern"] .product-details-extended,
body[data-theme="modern"] .success-stories-detailed,
body[data-theme="modern"] .case-studies-section,
body[data-theme="modern"] .pricing-tables-full,
body[data-theme="modern"] .testimonials-extended,
body[data-theme="modern"] .blog-section,
body[data-theme="modern"] .faq-extended,
body[data-theme="modern"] .landing-pages-content {
    display: block !important;
}

/* Retro theme content notice - Add when needed */
.retro-content-notice {
    display: none;
    background: rgba(86, 218, 119, 0.1);
    border: 1px solid #56da77;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
}

body[data-theme="terminal"] .retro-content-notice,
body[data-theme="amber"] .retro-content-notice,
body[data-theme="cga"] .retro-content-notice,
body[data-theme="ega"] .retro-content-notice,
body[data-theme="win95"] .retro-content-notice,
body[data-theme="web1"] .retro-content-notice {
    display: block !important;
}

/* Windows 95 Theme */
body[data-theme="win95"] {
    --bg-color: #C0C0C0;
    --text-color: #000000;
    --text-color-dim: #808080;
    --accent-color: #0000FF;
    --border-color: #808080;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    --desktop-bg: #008080; /* Teal desktop background */
    background: var(--desktop-bg) !important;
}

/* Windows 95 Desktop Background */
body[data-theme="win95"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--desktop-bg) !important;
    z-index: -1;
}

/* Force teal background on all elements in Win95 */
body[data-theme="win95"] {
    background: #008080 !important;
}

body[data-theme="win95"] .container,
body[data-theme="win95"] .container-fluid,
body[data-theme="win95"] .hero-section,
body[data-theme="win95"] .row,
body[data-theme="win95"] .col,
body[data-theme="win95"] .col-lg-12,
body[data-theme="win95"] section,
body[data-theme="win95"] .activity-section,
body[data-theme="win95"] .activity-cards {
    background: transparent;
}

/* Remove text shadows in Windows 95 */
body[data-theme="win95"] * {
    text-shadow: none;
}

/* Hide terminal prompt and hero section in Windows 95 */
body[data-theme="win95"] .prompt-section,
body[data-theme="win95"] .hero-section {
    display: none !important;
}

/* Win95: Show navbar but hide menu items (keep logo visible) */
body[data-theme="win95"] .navbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding-left: 12px !important;
    z-index: 600 !important;
}

body[data-theme="win95"] .navbar-nav-wrapper,
body[data-theme="win95"] .navbar-toggler,
body[data-theme="win95"] .navbar-collapse {
    display: none !important;
}

body[data-theme="win95"] .navbar-brand {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    padding: 8px 0;
}

body[data-theme="win95"] .logo-container {
    margin-top: 10px;
}

/* Windows 95 Window Styling */
body[data-theme="win95"] .terminal-window {
    background: var(--bg-color);
    border-top: 2px solid #DFDFDF;
    border-left: 2px solid #DFDFDF;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: none;
    position: relative;
    cursor: move;
    min-height: 200px;
    margin: 20px;
    z-index: 900;
}

body[data-theme="win95"] .terminal-header {
    background: linear-gradient(90deg, #0a246a 0%, #3a6ea7 55%, #102d6a 100%);
    color: white;
    padding: 2px 5px;
    font-size: 11px;
    font-weight: bold;
    border-top: 1px solid #6d9ed8;
    border-bottom: 1px solid #001b4f;
    position: relative;
    cursor: move;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

body[data-theme="win95"] .hero-section .terminal-window {
    max-width: 400px;
    margin: 30px auto;
}

/* Windows 95 Controls - visible by default in win95 theme */
body[data-theme="win95"] .win95-window-controls {
    display: flex !important;
    position: static;
    margin-left: auto;
    gap: 2px;
}

.win95-control-btn {
    width: 18px;
    height: 16px;
    border-top: 1px solid #DFDFDF;
    border-left: 1px solid #DFDFDF;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    background: #C0C0C0;
    color: #000000;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'MS Sans Serif', sans-serif;
    line-height: 1;
}

.win95-control-btn:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
    background: #A0A0A0;
}

.win95-control-btn:hover {
    background: #D0D0D0;
}

.win95-control-btn.win95-maximize {
    font-size: 0;
    padding: 0;
    position: relative;
}

.win95-control-btn.win95-maximize::before {
    content: '';
    display: block;
    width: 10px;
    height: 8px;
    border: 1px solid #000000;
    background: transparent;
    margin: auto;
}

.win95-control-btn.win95-maximize:active::before {
    border-color: #FFFFFF;
}

/* Taskbar */
body[data-theme="win95"] .win95-taskbar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #C0C0C0;
    border-top: 1px solid #DFDFDF;
    z-index: 1001;
    align-items: center;
    padding: 2px;
}

/* Start Button */
.win95-start-btn {
    height: 22px;
    padding: 0 8px;
    background: #C0C0C0;
    border-top: 1px solid #DFDFDF;
    border-left: 1px solid #DFDFDF;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.win95-start-btn:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
    background: #A0A0A0;
}

/* Desktop Icons Container - only visible in Windows 95 theme */
#win95-desktop-icons {
    display: none;
}

body[data-theme="win95"] #win95-desktop-icons {
    display: block !important;
}

/* Desktop Icons - only visible in Windows 95 theme */
.win95-desktop-icon {
    display: none;
}

body[data-theme="win95"] .win95-desktop-icon {
    display: block !important;
    position: fixed;
    width: 75px;
    text-align: center;
    color: white;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 8px;
    cursor: pointer;
    padding: 4px;
    user-select: none;
    text-shadow: none;
    z-index: 500;
}

body[data-theme="win95"] .win95-desktop-icon:hover {
    background: transparent;
    color: white;
}

body[data-theme="win95"] .win95-desktop-icon.selected {
    background: transparent;
    color: white;
}

body[data-theme="win95"] .win95-desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
    image-rendering: pixelated;
}

body[data-theme="win95"] .win95-desktop-icon div {
    color: white;
    text-shadow: none;
    font-weight: normal;
    font-size: 8px;
}

body[data-theme="win95"] .win95-desktop-file {
    position: absolute;
    z-index: 700;
}

/* Desktop Icons - Links onder navbar */
#win95-my-computer {
    top: 140px;
    left: 20px;
}

#win95-recycle-bin {
    top: 230px;
    left: 20px;
}

#win95-network {
    top: 320px;
    left: 20px;
}

body[data-theme="win95"] #win95-network div {
    text-align: center;
}

/* Windows 95 Content Windows */
body[data-theme="win95"] .terminal-content {
    background: #C0C0C0;
    color: #000000;
    padding: 8px;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

body[data-theme="win95"] .section-title {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
}

body[data-theme="win95"] .section-title::after,
body[data-theme="win95"] .section-title::before {
    color: inherit;
}

/* Windows 95 System Tray */
.win95-system-tray {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 4px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
    background: #C0C0C0;
    margin-right: 2px;
}

.win95-tray-icon {
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.win95-time {
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000000;
    padding: 0 6px;
}

/* Windows 95 Buttons */
body[data-theme="win95"] .btn-terminal,
body[data-theme="win95"] .btn-primary {
    background: #C0C0C0;
    border-top: 1px solid #DFDFDF;
    border-left: 1px solid #DFDFDF;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
}

body[data-theme="win95"] .btn-terminal:hover,
body[data-theme="win95"] .btn-primary:hover {
    background: #D0D0D0;
}

body[data-theme="win95"] .btn-terminal:active,
body[data-theme="win95"] .btn-primary:active {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
    background: #A0A0A0;
}

/* Windows 95 Forms */
body[data-theme="win95"] .form-control,
body[data-theme="win95"] .terminal-input {
    background: #FFFFFF;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
    color: #000000;
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    padding: 2px 4px;
}

/* Theme switcher in Windows 95 - allow the icon but hide dropdown initially */
body[data-theme="win95"] .theme-switcher {
    display: none !important;
}

/* Allow JavaScript to override and show theme switcher in Windows 95 */
body[data-theme="win95"] .theme-switcher[style*="block"] {
    display: block !important;
    background: #C0C0C0;
    border-top: 2px solid #DFDFDF;
    border-left: 2px solid #DFDFDF;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
}

/* Brand Container (Logo + Text) */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo Link Styles */
.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-link:hover {
    text-decoration: none;
}

/* Logo Container Styles */
.logo-container {
    display: inline-block;
    width: 60px;
    height: 60px;
    vertical-align: middle;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-link:hover .logo-container {
    transform: scale(1.1);
    filter: brightness(1.2);
}

#era-logo {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* ASCII Logo for Terminal Era */
.ascii-logo {
    font-family: var(--font-family);
    font-size: 6px;
    line-height: 0.7;
    color: var(--text-color);
    white-space: pre;
    margin: 0;
    display: block;
}

.ascii-logo pre {
    margin: 0;
    color: var(--text-color);
    font-size: 6px;
    line-height: 0.7;
}

/* For standalone logo usage (future) */
.logo-standalone {
    text-align: center;
}

.logo-standalone .logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.logo-standalone #era-logo {
    width: 100px;
    height: 100px;
}

.logo-standalone .brand-name {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Logo Style Classes for Different Eras */
.logo-terminal {
    filter: contrast(200%) brightness(1.2);
}

.logo-cga {
    image-rendering: pixelated;
    filter: contrast(150%);
}

.logo-ega {
    image-rendering: crisp-edges;
}

.logo-vga {
    image-rendering: auto;
}

.logo-web1 {
    filter: saturate(0.8);
}

.logo-web2 {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.logo-modern {
    filter: none;
}

/* AI Era (2025) Theme - Conversational Interface */
body[data-theme="modern"] {
    --bg-color: #0a0a0a;           /* Deep black/charcoal background */
    --text-color: #FFFFFF;         /* Clean white text */
    --text-color-dim: #a0a0a0;     /* Neutral gray */
    --accent-color: #56da77;       /* AI green accent */
    --accent-color-light: #6ef58b; /* Lighter green */
    --accent-color-dark: #3ec05f;  /* Darker green */
    --border-color: #2a2a2a;       /* Dark gray borders */
    --shadow-color: rgba(86, 218, 119, 0.3);
    --card-bg: #1a1a1a;            /* Charcoal card backgrounds */
    --sidebar-bg: #0a0a0a;         /* Darker sidebar (matches bg) */
    --chat-user-bg: #56da77;       /* User message bubble (light green with dark text) */
    --chat-ai-bg: #2a2a2a;         /* AI message bubble (dark gray) */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-color);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 350;
    line-height: 1.5;
    overflow-y: scroll; /* Always show scrollbar (prevents layout shift) */
}

/* AI Era: Override Bootstrap font restrictions */
/* Exclude theme switcher AND headers from weight override */
body[data-theme="modern"] *:not(.theme-dropdown):not(.theme-dropdown *):not(.floating-theme-switcher):not(.floating-theme-switcher *):not(.ai-message-content span):not(.ai-message-content span *):not(.ai-welcome-title) {
    font-family: var(--font-family);
    font-weight: 350;  /* EXCLUDED: .ai-welcome-title (needs weight 700) */
}

/* Headers in chat must keep their inline styles! */
body[data-theme="modern"] .ai-message-content span[style*="font-weight"] {
    /* Let inline styles control weight - don't override! */
    font-family: var(--font-family);
}

body[data-theme="modern"] {
    box-sizing: border-box;
}

/* AI Era Light Mode */
body[data-theme="modern"].light-mode {
    --bg-color: #FFFFFF;
    --text-color: #111827;
    --text-color-dim: #6B7280;
    --accent-color: #56da77;
    --accent-color-light: #6ef58b;
    --accent-color-dark: #3ec05f;
    --border-color: #E5E7EB;
    --shadow-color: rgba(86, 218, 119, 0.1);
    --card-bg: #F9FAFB;
    --sidebar-bg: #FAFAFA;
    --chat-user-bg: #56da77;
    --chat-ai-bg: #F3F4F6;
    overflow-y: scroll; /* Always show scrollbar (prevents layout shift) */
}

/* AI Era: Hide ALL traditional elements */
body[data-theme="modern"] .prompt-section,
body[data-theme="modern"] .win95-taskbar,
body[data-theme="modern"] #win95-desktop-icons,
body[data-theme="modern"] .win95-window-controls,
body[data-theme="modern"] .hero-section,
body[data-theme="modern"] .intro-section,
body[data-theme="modern"] .over-section,
body[data-theme="modern"] .activities-section,
body[data-theme="modern"] .contact-section,
body[data-theme="modern"] #intro,
body[data-theme="modern"] #over,
body[data-theme="modern"] #diensten,
body[data-theme="modern"] #contact {
    display: none !important;
}

/* AI Era: Hide navbar EXCEPT auth section */
body[data-theme="modern"] .navbar {
    display: none !important;
}

/* AI Era: Hide top-right auth buttons (moved to sidebar) */
body[data-theme="modern"] #authSection,
body[data-theme="modern"] #userMenu {
    display: none !important;
}

/* AI Era: Login Button - EXACT copy of .ai-nav-item styling */
body[data-theme="modern"] .ai-sidebar-login-btn {
    /* Reset button defaults first */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    line-height: normal;

    /* EXACT copy from .ai-nav-item */
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: var(--text-color-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px;
    font-weight: 350;
    font-family: var(--font-family);
    border-radius: 6px;
    margin: 2px 8px;
    min-height: 44px;
    box-sizing: border-box;
}

body[data-theme="modern"] .ai-sidebar-login-btn:hover {
    background: rgba(86, 218, 119, 0.08);
    color: var(--text-color-dim);  /* BLIJFT ZELFDE KLEUR bij hover */
    text-decoration: none;
}

/* AI Era: User Menu Wrapper - DIRECT child of footer */
body[data-theme="modern"] #aiSidebarUserMenu {
    width: 100%;
    margin-top: 8px;
    /* display: flex - Removed !important, JavaScript controls visibility */
    flex-direction: column;
}

body[data-theme="modern"] .ai-user-profile {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(86, 218, 119, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

body[data-theme="modern"] .ai-user-profile:hover {
    background: rgba(86, 218, 119, 0.1);
}

body[data-theme="modern"] .ai-user-avatar {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
}

body[data-theme="modern"] .ai-user-avatar svg {
    stroke: white;
}

body[data-theme="modern"] .ai-user-info {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

body[data-theme="modern"] .ai-user-name {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 350;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-theme="modern"] .ai-user-email {
    color: var(--text-color-dim);
    font-size: 11px;
    font-weight: 350;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-theme="modern"] .ai-user-menu-items {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
}

body[data-theme="modern"] .ai-user-menu-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-color-dim);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 350;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: left;
}

body[data-theme="modern"] .ai-user-menu-item:hover {
    background: rgba(86, 218, 119, 0.08);
    color: var(--text-color);
}

body[data-theme="modern"] .ai-user-menu-item svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* AI Era: Narrow sidebar - hide text for user menu items */
body[data-theme="modern"] .ai-sidebar.narrow .ai-menu-text {
    display: none !important;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-user-menu-item {
    justify-content: center;
    padding: 10px;
}

/* AI Era: Tooltips for narrow sidebar user menu */
body[data-theme="modern"] .ai-sidebar.narrow .ai-user-menu-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-user-menu-item:hover::after {
    opacity: 1;
    transition-delay: 0.3s;
}

/* Hide tooltips when sidebar is wide */
body[data-theme="modern"] .ai-sidebar:not(.narrow) .ai-user-menu-item::after {
    display: none !important;
}

/* AI Era: Narrow sidebar - hide login button text and add tooltip */
body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-login-btn span {
    display: none !important;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-login-btn {
    justify-content: center;
    padding: 12px;
    position: relative;
}

/* Tooltip for login button in narrow mode */
body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-login-btn::after {
    content: 'Inloggen';
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-login-btn:hover::after {
    opacity: 1;
    transition-delay: 0.3s;
}

/* AI Era: Narrow sidebar - hide user profile info */
body[data-theme="modern"] .ai-sidebar.narrow .ai-user-info {
    display: none !important;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-user-profile {
    justify-content: center;
    padding: 8px;
}

/* AI Era: Theme Section in Footer - now ABOVE auth */
body[data-theme="modern"] .ai-theme-section {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px 8px 16px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    margin: 0 0 2px 0;
    box-sizing: border-box;
}

/* AI Era: Portal pages navbar - HIDE IT (consistent with main site) */
body[data-theme="modern"] .navbar.navbar-dark {
    display: none !important;
}

/* REMOVED: Conflicting display:none for body[data-theme="modern"]::after */
/* The overlay ::after is properly defined at line ~3627 with pointer-events: none */

/* AI Era: Claude-style Sidebar */
.ai-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1001;
    display: none;
    flex-direction: column;
    font-family: var(--font-family);
    transition: width 0.3s ease;
}

body[data-theme="modern"] .ai-sidebar {
    display: flex !important;
    width: 260px; /* Ensure full width by default */
    cursor: pointer; /* Indicate clickable areas */
}

/* AI Era: Narrow Sidebar State */
body[data-theme="modern"] .ai-sidebar.narrow {
    width: 60px;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-title {
    justify-content: center;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-title .ai-avatar {
    margin: 0;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-title {
    font-size: 0;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-item span:not(.ai-nav-arrow) {
    display: none !important;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-item {
    justify-content: center;
    padding: 12px;
    min-height: 44px;
    box-sizing: border-box;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-arrow {
    display: none !important;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-submenu {
    display: none !important;
}

/* Show submenu on mobile */
@media (max-width: 768px) {
    /* MOBILE FIX: Prevent horizontal scroll on entire page */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    body[data-theme="modern"] {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    body[data-theme="modern"] .ai-sidebar .ai-nav-submenu {
        display: none !important;
    }

    body[data-theme="modern"] .ai-sidebar .ai-nav-item.expanded .ai-nav-submenu {
        display: block !important;
    }

    /* Fix hover width on mobile to match sidebar width */
    body[data-theme="modern"] .ai-sidebar .ai-nav-item:hover,
    body[data-theme="modern"] .ai-sidebar .ai-nav-subitem:hover {
        width: 100%;
    }

    /* MOBILE FIX: Make sidebar scrollable to prevent keyboard overlap */
    body[data-theme="modern"] .ai-sidebar {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* Ensure footer is part of scroll area, not fixed at bottom */
    .ai-sidebar-footer {
        position: relative;
        margin-top: auto;
    }

    /* Give nav menu flex-grow so footer stays at bottom when content is short */
    .ai-nav-menu {
        flex-grow: 1;
        min-height: 0; /* Allow flex shrinking */
    }
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-theme-toggle {
    justify-content: center;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-theme-toggle span {
    display: none !important;
}


/* Ensure header height remains consistent */
body[data-theme="modern"] .ai-sidebar-header {
    min-height: 60px;
    display: flex !important;
    align-items: center;
    gap: 12px;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-header {
    justify-content: center;
    padding: 16px 12px;
}

/* AI Era: Sidebar Toggle Button */
body[data-theme="modern"] .ai-sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-color-dim);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body[data-theme="modern"] .ai-sidebar-toggle:hover {
    background: rgba(86, 218, 119, 0.08);
    color: var(--text-color);
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-toggle {
    display: none !important;
}

/* AI Era: Logo as clickable home link */
body[data-theme="modern"] .ai-sidebar-title {
    cursor: pointer;
    flex: 1;
    user-select: none;
}

/* AI Era: Interactive elements keep their cursor */
body[data-theme="modern"] .ai-sidebar .ai-nav-item,
body[data-theme="modern"] .ai-sidebar .ai-nav-subitem,
body[data-theme="modern"] .ai-sidebar .ai-sidebar-toggle,
body[data-theme="modern"] .ai-sidebar .ai-theme-toggle,
body[data-theme="modern"] .ai-sidebar button,
body[data-theme="modern"] .ai-sidebar a,
body[data-theme="modern"] .ai-sidebar input,
body[data-theme="modern"] .ai-sidebar select {
    cursor: pointer;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-logo-text {
    display: none !important;
}

/* AI Era: Tooltips for narrow sidebar */
body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-item,
body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-subitem {
    position: relative;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-item::after,
body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-subitem::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-item:hover::after,
body[data-theme="modern"] .ai-sidebar.narrow .ai-nav-subitem:hover::after {
    opacity: 1;
    transition-delay: 0.3s;
}

/* Hide tooltips when sidebar is wide */
body[data-theme="modern"] .ai-sidebar:not(.narrow) .ai-nav-item::after,
body[data-theme="modern"] .ai-sidebar:not(.narrow) .ai-nav-subitem::after {
    display: none !important;
}


/* AI Era: Sidebar Header */
.ai-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--sidebar-bg);
}

body[data-theme="modern"] .ai-sidebar-title {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 350;
    margin: 0;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
}

body[data-theme="modern"] .ai-avatar {
    width: 28px;
    height: 28px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body[data-theme="modern"] .ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body[data-theme="modern"] .ai-avatar svg {
    stroke: white;
}

/* AI Era: Navigation Menu */
.ai-nav-menu {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

/* AI Era: Services Submenu */
.ai-nav-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

body[data-theme="modern"].light-mode .ai-nav-submenu {
    background: rgba(0, 0, 0, 0.03);
}

.ai-nav-item.expanded .ai-nav-submenu {
    display: block;
}

.ai-nav-item .ai-nav-arrow {
    margin-left: auto;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text-color-dim);
    opacity: 0.5;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 2px;
}

.ai-nav-item .ai-nav-arrow:hover {
    opacity: 1;
    background: rgba(86, 218, 119, 0.1);
}

.ai-nav-item.expanded .ai-nav-arrow {
    transform: rotate(90deg);
    opacity: 0.7;
}

body[data-theme="modern"] .ai-nav-subitem {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 48px;
    color: var(--text-color-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 12px;
    font-weight: 350;
    font-family: var(--font-family);
}

.ai-nav-subitem:hover {
    background: rgba(86, 218, 119, 0.1);
    color: var(--text-color);
    text-decoration: none;
}

/* Nested submenu for trainingen */
.ai-nav-submenu-nested {
    display: none;
    background: rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

body[data-theme="modern"].light-mode .ai-nav-submenu-nested {
    background: rgba(0, 0, 0, 0.05);
}

.ai-nav-subitem.expanded .ai-nav-submenu-nested {
    display: block;
}

.ai-nav-subitem .ai-nav-arrow {
    margin-left: auto;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text-color-dim);
    opacity: 0.4;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 2px;
}

.ai-nav-subitem .ai-nav-arrow:hover {
    opacity: 1;
    background: rgba(86, 218, 119, 0.1);
}

.ai-nav-subitem.expanded .ai-nav-arrow {
    transform: rotate(90deg);
    opacity: 0.6;
}

body[data-theme="modern"] .ai-nav-subitem-nested {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 20px 6px 60px;
    color: var(--text-color-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 11px;
    font-weight: 300;
    font-family: var(--font-family);
}

.ai-nav-subitem-nested:hover {
    background: rgba(86, 218, 119, 0.1);
    color: var(--text-color);
    text-decoration: none;
}

.ai-nav-subitem.expandable {
    cursor: pointer;
}

body[data-theme="modern"] .ai-nav-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: var(--text-color-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px;
    font-weight: 350;
    font-family: var(--font-family);
    border-radius: 6px;
    margin: 2px 8px;
    min-height: 44px;
    box-sizing: border-box;
}

.ai-nav-item:hover {
    background: rgba(86, 218, 119, 0.08);
    color: var(--text-color);
    text-decoration: none;
}

.ai-nav-item.active {
    background: rgba(86, 218, 119, 0.15);
    color: var(--accent-color);
}

body[data-theme="modern"] .ai-nav-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* AI Era: Sidebar Footer */
.ai-sidebar-footer {
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 12px;
    margin-top: auto;
}

/* Mobile Safari: Extra padding for bottom navigation bar */
@media (max-width: 768px) {
    .ai-sidebar-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 60px));
        /* 60px fallback for Safari when safe-area-inset-bottom is not available */
        /* This ensures footer is always above Safari's bottom UI */
    }
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-sidebar-footer {
    justify-content: center;
    padding: 12px 0;
    flex-direction: column;
    gap: 8px;
}

/* Show only theme icons in narrow mode (not the toggle switch) */
body[data-theme="modern"] .ai-sidebar.narrow .ai-theme-toggle {
    display: none !important;
}

/* Keep theme section visible but adjust layout for narrow */
body[data-theme="modern"] .ai-sidebar.narrow .ai-theme-section {
    flex-direction: column;
    gap: 8px;
    padding: 0 8px 8px 8px;
    align-items: center;
}

/* AI Era: Day/Night Toggle */
.ai-theme-toggle {
    width: 40px;
    height: 20px;
    background: var(--border-color);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-theme-toggle-switch {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

body[data-theme="modern"].light-mode .ai-theme-toggle {
    background: var(--accent-color);
}

body[data-theme="modern"].light-mode .ai-theme-toggle-switch {
    transform: translateX(20px);
}

body[data-theme="modern"] .ai-theme-label {
    color: #000000;
    font-size: 16px;
    font-weight: 350;
    margin: 0 4px;
    font-family: var(--font-family);
    line-height: 1;
    display: inline-block;
    filter: grayscale(0.3);
    opacity: 0.5;
    transition: all 0.2s ease;
    user-select: none;
    cursor: default;
}

/* Make theme labels clickable in narrow mode */
body[data-theme="modern"] .ai-sidebar.narrow .ai-theme-label {
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

body[data-theme="modern"] .ai-sidebar.narrow .ai-theme-label:hover {
    background: rgba(86, 218, 119, 0.08);
    opacity: 0.8;
}

/* Footer no longer needs hover effects - individual elements handle their own hovers */

/* Make active theme icon more visible */
body[data-theme="modern"] .ai-sidebar-footer .ai-theme-label:first-child {
    opacity: 1;
    filter: grayscale(0);
}

body[data-theme="modern"].light-mode .ai-sidebar-footer .ai-theme-label:first-child {
    opacity: 0.5;
    filter: grayscale(0.3);
}

body[data-theme="modern"].light-mode .ai-sidebar-footer .ai-theme-label:last-child {
    opacity: 1;
    filter: grayscale(0);
}


/* AI Era: Main Content Area */
body[data-theme="modern"] .container,
body[data-theme="modern"] .container-fluid {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* AI Era: Chat Interface */
.ai-chat-container {
    display: none;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-color);
    position: relative;
}

body[data-theme="modern"] .ai-chat-container {
    display: flex !important;
}

/* Desktop: Chat container takes remaining space after sidebar */
@media (min-width: 769px) {
    body[data-theme="modern"] .ai-chat-container {
        position: absolute;
        left: 260px;
        right: 0;
        width: auto;
        transition: all 0.3s ease;
    }

    body[data-theme="modern"] .ai-sidebar.narrow ~ .ai-chat-container {
        left: 60px;
    }
}

/* AI Era: Mobile Responsive - Overlay sidebar */
@media (max-width: 768px) {
    body[data-theme="modern"] .ai-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 50%; /* 50% of screen width on mobile */
        z-index: 1002;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    body[data-theme="modern"] .ai-sidebar.mobile-open {
        transform: translateX(0);
    }

    body[data-theme="modern"] .ai-chat-container {
        margin-left: 0;
        width: 100%;
        padding: 60px 20px 20px 20px; /* Top padding for mobile toggle button */
    }
}

/* Mobile overlay backdrop - separate element */
body[data-theme="modern"]::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    body[data-theme="modern"].sidebar-open::after {
        opacity: 1;
        pointer-events: auto;
    }
}

/* AI Era: Mobile Toggle Button */
.ai-mobile-toggle-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1003;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-mobile-toggle-btn:hover {
    background: rgba(86, 218, 119, 0.08);
}

.ai-mobile-toggle-btn svg {
    display: block;
}

@media (max-width: 768px) {
    body[data-theme="modern"] .ai-mobile-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Hide mobile toggle when sidebar is open */
    body[data-theme="modern"].sidebar-open .ai-mobile-toggle-btn {
        display: none !important;
    }
}

/* AI Era: Center Welcome State (Claude-style) */
.ai-welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 40px;
    padding-bottom: 200px; /* Space for fixed input at bottom */
    text-align: center;
    overflow-y: auto;
}

.ai-welcome-state > * {
    max-width: 800px;
}

/* Desktop: reduce bottom padding since there's more space */
@media (min-width: 769px) {
    .ai-welcome-state {
        padding-bottom: 240px;
    }
}

body[data-theme="modern"] .ai-welcome-logo {
    margin-bottom: 16px;
    display: flex !important;
    justify-content: center;
}

body[data-theme="modern"] .ai-welcome-title {
    font-size: 28px !important;
    font-weight: 700 !important;  /* 🔥 USER REQUESTED: 700 (was 350) */
    color: var(--text-color) !important;
    margin-bottom: 16px !important;
    font-family: var(--font-family) !important;
    letter-spacing: 2px !important;
}

body[data-theme="modern"] .ai-welcome-subtitle {
    font-size: 15px;
    font-weight: 350;
    color: var(--text-color-dim);
    margin-bottom: 40px;
    line-height: 1.5;
    font-family: var(--font-family);
}

.ai-suggestions {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 12px;
    width: 100%;
    max-width: 700px;
}

/* Tablet and up: 2x2 grid */
@media (min-width: 600px) {
    .ai-suggestions {
        grid-template-columns: repeat(2, 1fr);
    }
}

body[data-theme="modern"] .ai-suggestion-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body[data-theme="modern"] .ai-suggestion-card:hover {
    background: rgba(86, 218, 119, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body[data-theme="modern"] .ai-suggestion-title {
    font-size: 14px;
    font-weight: 350;
    color: var(--text-color);
    margin-bottom: 4px;
    font-family: var(--font-family);
    display: flex !important;
    align-items: center;
    gap: 8px;
}

body[data-theme="modern"] .ai-suggestion-title svg {
    flex-shrink: 0;
}

body[data-theme="modern"] .ai-suggestion-text {
    font-size: 13px;
    font-weight: 350;
    color: var(--text-color-dim);
    font-family: var(--font-family);
}

.ai-chat-header {
    width: 100%;
    padding: 16px 40px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    display: none; /* Hidden until conversation starts */
}

.ai-chat-title {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 40px;
    background: var(--bg-color);
    display: none; /* Hidden until conversation starts */
}

body[data-theme="modern"].chatting .ai-chat-messages {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.ai-chat-messages > * {
    width: 100%;
    max-width: 800px;
}

body[data-theme="modern"].chatting .ai-welcome-state {
    display: none !important;
}

body[data-theme="modern"].chatting .ai-chat-header {
    display: block !important;
}

body[data-theme="modern"] .ai-message {
    margin-bottom: 24px;
    max-width: 700px;
    display: flex !important;
    flex-direction: column;
}

body[data-theme="modern"] .ai-message.user {
    align-items: flex-end;
    margin-left: auto;
}

body[data-theme="modern"] .ai-message.ai {
    align-items: flex-start;
}

body[data-theme="modern"] .ai-message-content {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 350;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    font-family: var(--font-family);
}

/* 🔍 DEBUG MODE: Typography & UI Element Visualization
   Remove this section when debugging is complete!

   COLOR KEY:
   🔴 H1 - Red (#FF0000)
   🔵 H2 - Blue (#0066FF)
   🟢 H3 - Green (#00AA00)
   🟠 H4 - Orange (#FF8800)
   🟣 H5 - Purple (#AA00AA)
   🩵 H6 - Teal (#00AAAA)
   🟡 Body Text - Yellow (#FFFF00)
   🟤 UI Elements - Brown (#8B4513)
   🔷 Buttons - Cyan (#00FFFF)
   🟪 Cards - Magenta (#FF00FF)
*/

/* ===== DEBUG: UI ELEMENTS ===== */

/* Welcome Title - Large Title */
body[data-theme="modern"] .ai-welcome-title {
}

/* Welcome Subtitle - Large body text */
body[data-theme="modern"] .ai-welcome-subtitle {
}

/* Suggestion Cards - Interactive UI */
body[data-theme="modern"] .ai-suggestion-card {
}

/* Suggestion Card Title */
body[data-theme="modern"] .ai-suggestion-title {
}

/* Suggestion Card Text */
body[data-theme="modern"] .ai-suggestion-text {
}

/* Navigation Items - Sidebar */
body[data-theme="modern"] .ai-nav-item {
}

/* Chat Input Button */
body[data-theme="modern"] .ai-chat-send-btn {
}

/* Chat Input Textarea */
body[data-theme="modern"] .ai-chat-input {
}

/* Login Button in Sidebar */
body[data-theme="modern"] .ai-sidebar-login-btn {
}

/* ===== DEBUG: TEXT ELEMENTS ===== */

/* H1 - Red border (1.5em = 22.5px, 700 weight) - 20px bottom margin */
body[data-theme="modern"] .ai-message-content span[style*="font-size: 1.4em"] {
    font-size: 1.5em !important;        /* 22.5px (1.5 × 15px base) */
    font-weight: 700 !important;        /* 🔥 USER REQUESTED: 700 */
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    margin: 12px 0 20px 0 !important;   /* 🎯 USER REQUESTED: 20px bottom */
    display: block !important;
}

/* H2 - Blue border (1.25em = 18.75px, 650 weight) - 5px bottom margin */
body[data-theme="modern"] .ai-message-content span[style*="font-size: 1.2em"] {
    font-size: 1.25em !important;       /* 18.75px (1.25 × 15px base) */
    font-weight: 650 !important;        /* 🔥 USER REQUESTED: 650 */
    letter-spacing: -0.005em !important;
    line-height: 1.3 !important;
    margin: 8px 0 5px 0 !important;     /* 🎯 USER REQUESTED: 5px bottom */
    display: block !important;
}

/* H3 - Green border (1.15em = 17.25px, 650 weight) - 0px bottom margin */
body[data-theme="modern"] .ai-message-content span[style*="font-size: 1.1em"] {
    font-size: 1.15em !important;       /* 17.25px */
    font-weight: 650 !important;
    line-height: 1.4 !important;
    margin: 12px 0 0 0 !important;      /* 🎯 USER REQUESTED: 0px bottom */
    display: block !important;
}

/* H4 - Orange border (1.1em = 16.5px, 600 weight) - 0px bottom margin */
body[data-theme="modern"] .ai-message-content span[style*="font-size: 1.05em"] {
    font-size: 1.1em !important;        /* 16.5px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 10px 0 0 0 !important;      /* 🎯 USER REQUESTED: 0px bottom */
    display: block !important;
}

/* H5 - Purple border (1.05em = 15.75px, 600 weight) - 0px bottom margin */
body[data-theme="modern"] .ai-message-content span[style*="font-size: 1.02em"][style*="font-weight"] {
    font-size: 1.05em !important;       /* 15.75px */
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin: 8px 0 0 0 !important;       /* 🎯 USER REQUESTED: 0px bottom */
    display: block !important;
}

/* H6 - Teal border (15px, 600 weight) - 0px bottom margin - ALL CAPS */
body[data-theme="modern"] .ai-message-content span[style*="font-size: 15px"][style*="font-weight"] {
    font-size: 15px !important;         /* 🎯 USER REQUESTED: 15px */
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin: 6px 0 0 0 !important;       /* 🎯 USER REQUESTED: 0px bottom */
    display: block !important;
    text-transform: uppercase !important;  /* 🔥 USER REQUESTED: ALL CAPITAL */
}

/* All headers should be block-level (removed font-weight override!) */
body[data-theme="modern"] .ai-message-content span[style*="font-weight: 700"],
body[data-theme="modern"] .ai-message-content span[style*="font-weight: 600"] {
    /* font-weight: REMOVED - let specific header rules above control weight */
    display: block !important;
}

/* Body text / Paragraph text - YELLOW border for visibility (15px, 350 weight) */
body[data-theme="modern"] .ai-message-content p {
    margin: 8px 0;
    font-size: 15px;
    font-weight: 350;
    line-height: 1.6;
    display: block !important;
}

/* ===== PORTAL CONTENT: SAME HEADER STYLING AS CHAT AREA ===== */

/* Portal H1 - Red border (22.5px, 700 weight, 20px bottom margin) */
body[data-theme="modern"] .portal-content h1 {
    font-size: 22.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 12px 0 20px 0;
    display: block !important;
}

/* Portal H2 - Blue border (18.75px, 650 weight, 5px bottom margin) */
body[data-theme="modern"] .portal-content h2 {
    font-size: 18.75px;
    font-weight: 650;
    letter-spacing: -0.005em;
    line-height: 1.3;
    margin: 8px 0 5px 0;
    display: block !important;
}

/* Portal H3 - Green border (17.25px, 650 weight, 0px bottom margin) */
body[data-theme="modern"] .portal-content h3 {
    font-size: 17.25px;
    font-weight: 650;
    line-height: 1.4;
    margin: 12px 0 0 0;
    display: block !important;
}

/* Portal H4 - Orange border (16.5px, 600 weight, 0px bottom margin) */
body[data-theme="modern"] .portal-content h4 {
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0 0 0;
    display: block !important;
}

/* Portal H5 - Purple border (15.75px, 600 weight, 0px bottom margin) */
body[data-theme="modern"] .portal-content h5 {
    font-size: 15.75px;
    font-weight: 600;
    line-height: 1.5;
    margin: 8px 0 0 0;
    display: block !important;
}

/* Portal H6 - Teal border (15px, 600 weight, 0px bottom margin, ALL CAPS) */
body[data-theme="modern"] .portal-content h6 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 6px 0 0 0;
    display: block !important;
    text-transform: uppercase;
}

/* Direct text nodes and regular text in AI messages - YELLOW border */
body[data-theme="modern"] .ai-message.ai .ai-message-content {
}

/* Regular spans without special styling (also body text) */
body[data-theme="modern"] .ai-message-content span:not([style*="font-size"]):not([style*="font-weight: 700"]):not([style*="font-weight: 600"]) {
    margin: 4px 0;
    display: inline-block;
}

/* User messages: Claude-style rounded box */
body[data-theme="modern"] .ai-message.user .ai-message-content {
    background: var(--chat-user-bg);
    color: #000000;
    border-radius: 18px !important;
    margin-left: auto;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* AI messages: No background, just text (Claude-style) */
body[data-theme="modern"] .ai-message.ai .ai-message-content {
    background: transparent;
    color: var(--text-color);
    border-radius: 0;
    padding: 0;
    max-width: 100%;
}

body[data-theme="modern"] .ai-message-meta {
    font-size: 11px;
    font-weight: 350;
    color: var(--text-color-dim);
    margin-top: 6px;
    font-family: var(--font-family);
}

.ai-message.user .ai-message-meta {
    text-align: right;
    margin-right: 4px;
}

.ai-message.ai .ai-message-meta {
    text-align: left;
    margin-left: 4px;
}

/* AI Avatar for AI messages */
body[data-theme="modern"] .ai-message.ai::before {
    content: '';
    width: 24px;
    height: 24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    background-image: url('assets/logos/logo-modern.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

/* AI Era: Chat Input */
.ai-chat-input-container {
    width: 100%;
    padding: 24px 40px;
    background: var(--bg-color);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-chat-input-container > * {
    width: 100%;
    max-width: 800px;
}

body[data-theme="modern"].chatting .ai-chat-input-container {
    position: relative;
    border-top: 1px solid var(--border-color);
}

/* AI Era: Quick Action Buttons */
.ai-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

body[data-theme="modern"] .ai-quick-btn {
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color-dim);
    font-size: 13px;
    font-weight: 350;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body[data-theme="modern"] .ai-quick-btn:hover {
    background: rgba(86, 218, 119, 0.1);
    border-color: var(--accent-color);
}

.ai-chat-input-wrapper {
    position: relative;
}

body[data-theme="modern"] .ai-chat-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 350;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body[data-theme="modern"] .ai-chat-input::-webkit-scrollbar {
    display: none !important;
}

.ai-chat-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(86, 218, 119, 0.1);
}

.ai-chat-input::placeholder {
    color: var(--text-color-dim);
}

body[data-theme="modern"] .ai-chat-send-btn {
    position: absolute;
    right: 8px;
    top: calc(50% - 2px);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
}

body[data-theme="modern"] .ai-chat-send-btn:hover {
    background: var(--accent-color-dark);
    transform: translateY(-50%) scale(1.05);
}

body[data-theme="modern"] .ai-chat-send-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* AI Era: Content Cards (for traditional content) */
body[data-theme="modern"] .terminal-window {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 24px 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body[data-theme="modern"] .terminal-header {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 16px;
}

body[data-theme="modern"] .terminal-content {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 20px;
    line-height: 1.6;
}

body[data-theme="modern"] .terminal-text {
    color: var(--text-color);
    margin: 12px 0;
}

/* AI Era: Buttons */
body[data-theme="modern"] .btn-terminal,
body[data-theme="modern"] .btn-primary {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    font-family: var(--font-family);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

body[data-theme="modern"] .btn-terminal:hover,
body[data-theme="modern"] .btn-primary:hover {
    background: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
    color: white;
}

/* AI Era: Section Titles */
body[data-theme="modern"] .section-title {
    color: var(--text-color);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
    text-transform: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px !important;
    margin-bottom: 24px;
}

/* AI Era: Typography */
body[data-theme="modern"] h1,
body[data-theme="modern"] h2,
body[data-theme="modern"] h3,
body[data-theme="modern"] h4,
body[data-theme="modern"] h5,
body[data-theme="modern"] h6 {
    color: var(--text-color);
    font-family: var(--font-family);
    text-transform: none;
    font-weight: 600;
    text-shadow: none;
}

/* AI Era: Remove scanline effect */
body[data-theme="modern"]::before {
    display: none !important;
}

/* AI Era: Scrollbar styling - match standard width for consistency */
body[data-theme="modern"] ::-webkit-scrollbar {
    width: 10px;
}

body[data-theme="modern"] ::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

body[data-theme="modern"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

body[data-theme="modern"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-color-dim);
}

/* AI Era: Typing Indicator (Claude-style) */
.typing-indicator.ai-message::before {
    content: '';
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    background-image: url('assets/logos/logo-modern.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.typing-indicator .ai-message-content {
    background: transparent;
    padding: 4px 0;
    border-radius: 0;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-color-dim);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI Era: Mobile responsiveness */
@media (max-width: 768px) {
    body[data-theme="modern"] {
        padding-left: 0;
    }

    body[data-theme="modern"] .ai-sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body[data-theme="modern"] .ai-sidebar.open {
        transform: translateX(0);
    }
}

/* ============================================
   EASTER EGG SYSTEM STYLES
   ============================================ */

/* Toast Notification for Easter Egg Discovery */
.easter-egg-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #00FF00;
    color: #000000;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.8s ease-out; /* Slower transition: 0.8s instead of 0.3s */
    font-family: var(--font-family);
    font-size: 14px;
}

.easter-egg-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Easter Egg Overlay Base */
.easter-egg-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease-in;
    overflow: auto;
}

.easter-egg-overlay.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ============================================
   CLIPPY EASTER EGG
   ============================================ */

.clippy-container {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.clippy-image {
    width: 100px;
    height: 120px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.clippy-image.wiggle {
    animation: wiggle 0.5s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.clippy-speech-bubble {
    background: #FFFFCC;
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #000000;
    max-width: 550px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    font-size: 13px;
    line-height: 1.5;
}

.clippy-speech-bubble::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 20px solid #000000;
}

.clippy-speech-bubble::after {
    content: '';
    position: absolute;
    left: -16px;
    top: 32px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 16px solid #FFFFCC;
}

.clippy-speech-bubble p {
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.clippy-speech-bubble p:last-child {
    margin-bottom: 0;
}

.clippy-speech-bubble strong {
    color: #0000FF;
    font-weight: bold;
}

.clippy-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #C0C0C0;
    border: 2px solid #000000;
    border-radius: 3px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.clippy-close-btn:hover {
    background: #E0E0E0;
}

/* ============================================
   WEB 1.0 FLASH LOADING EASTER EGG
   ============================================ */

.flash-loading-container {
    background: #000000;
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    color: #CCCCCC;
    font-family: Arial, sans-serif;
}

.flash-logo {
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.flash-loading-container h2 {
    color: #FF0000;
    margin-bottom: 30px;
    font-size: 24px;
    letter-spacing: 2px;
}

.loading-bar-container {
    width: 400px;
    height: 30px;
    background: #333333;
    border: 2px solid #666666;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF0000, #FF6600);
    transition: width 0.2s ease-out;
}

.loading-percent {
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 10px 0;
}

.loading-text {
    margin: 10px 0;
    font-style: italic;
}

.loading-subtext {
    font-size: 12px;
    color: #999999;
    margin: 5px 0 20px;
}

.skip-intro-btn {
    background: #333333;
    color: #FFFFFF;
    border: 2px solid #666666;
    padding: 10px 30px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.skip-intro-btn:hover {
    background: #555555;
    border-color: #888888;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   KONAMI CODE OVERLAY
   ============================================ */

.konami-code-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00FF00;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    font-family: 'Courier New', monospace;
}

/* ============================================
   WASTED EASTER EGG ANIMATIONS (GTA V Style)
   ============================================ */

@keyframes wastedBackdrop {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px) grayscale(0%);
        -webkit-backdrop-filter: blur(0px) grayscale(0%);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(8px) grayscale(100%);
        -webkit-backdrop-filter: blur(8px) grayscale(100%);
    }
}

@keyframes wastedSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wastedTextFade {
    0% {
        opacity: 0;
        transform: scale(1.3);
        filter: blur(4px);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

@keyframes wastedSubtitleFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* ============================================
   CLIPOCALYPSE EASTER EGG ANIMATIONS (AI ERA)
   ============================================ */

@keyframes paperclipFall {
    0% {
        top: -50px;
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 100vh;
        transform: rotate(720deg);
        opacity: 0.3;
    }
}

@keyframes paperclipAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   CRITICAL FIX: Web 1.0 Theme Switcher Positioning
   ======================================== */
/* Force theme switcher to be fixed and visible in Web 1.0 - MUST come last! */
/* REMOVED: Web1 duplicate positioning - uses default positioning now */

/* ============================================
   CRITICAL OVERRIDES - MUST BE AT END
   Override Bootstrap's global 16px!important reset
   ============================================ */

/* Web 2.0 Theme - Modern 2025 - Override Bootstrap's hardcoded 16px!important */
/* DOUBLE ATTRIBUTE SELECTOR for higher specificity than Bootstrap's global reset */
body[data-theme="web2"][data-theme="web2"] h1,
body[data-theme="web2"][data-theme="web2"] .h1 {
    font-size: 2rem;
}

body[data-theme="web2"][data-theme="web2"] h2,
body[data-theme="web2"][data-theme="web2"] .h2 {
    font-size: 1.5rem;
}

body[data-theme="web2"][data-theme="web2"] h3,
body[data-theme="web2"][data-theme="web2"] .h3 {
    font-size: 1.25rem;
}

body[data-theme="web2"][data-theme="web2"] h4,
body[data-theme="web2"][data-theme="web2"] .h4 {
    font-size: 1.125rem;
}

body[data-theme="web2"][data-theme="web2"] h5,
body[data-theme="web2"][data-theme="web2"] .h5 {
    font-size: 1rem;
}

body[data-theme="web2"][data-theme="web2"] h6,
body[data-theme="web2"][data-theme="web2"] .h6 {
    font-size: 0.875rem;
}

body[data-theme="web2"][data-theme="web2"] .section-title {
    font-size: 1.75rem;
}

/* Navigation menu items - Override Bootstrap's 16px on <a> tags */
body[data-theme="web2"][data-theme="web2"] .nav-link,
body[data-theme="web2"][data-theme="web2"] .nav-link a {
    font-size: 0.875rem;
}

body[data-theme="web2"][data-theme="web2"] .navbar-brand,
body[data-theme="web2"][data-theme="web2"] .navbar-brand a {
    font-size: 1.125rem;
}

/* Body text and paragraphs */
body[data-theme="web2"][data-theme="web2"] p {
    font-size: 1rem;
}

/* Strong, bold, emphasis, spans, divs - ALL inline elements inherit parent size */
body[data-theme="web2"][data-theme="web2"] strong,
body[data-theme="web2"][data-theme="web2"] b,
body[data-theme="web2"][data-theme="web2"] em,
body[data-theme="web2"][data-theme="web2"] i,
body[data-theme="web2"][data-theme="web2"] span,
body[data-theme="web2"][data-theme="web2"] div {
    font-size: inherit;
}

/* All links inherit parent size */
body[data-theme="web2"][data-theme="web2"] a {
    font-size: inherit;
}

/* Dropdown menu items */
body[data-theme="web2"][data-theme="web2"] .dropdown-item {
    font-size: 0.8125rem;
}

/* ============================================
   POSITIONING FIX: Web1 and AI Era Theme Switcher
   ============================================ */
/* Web 1.0: Force exact same positioning as Win95 and terminal themes */
body[data-theme="web1"] .floating-theme-switcher {
    position: fixed;
    bottom: 150px;
    right: 20px;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
}

/* AI Era: Force exact same positioning as other themes */
body[data-theme="modern"] .floating-theme-switcher,
body[data-theme="modern"].light-mode .floating-theme-switcher {
    position: fixed;
    bottom: 150px;
    right: 20px;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
}

/* Debug borders removed - all positioning issues resolved! */

/* ============================================
   FORM NOTIFICATIONS (THEME-FRIENDLY)
   ============================================ */

.form-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 400px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-family: var(--font-family);
    pointer-events: auto;
}

.form-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.form-notification-content {
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    padding: 16px 20px;
    box-shadow: 0 4px 12px var(--shadow-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.form-notification-message {
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.form-notification-close {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 8px;
    line-height: 1;
    transition: all 0.2s;
    font-family: var(--font-family);
    flex-shrink: 0;
}

.form-notification-close:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Success variant */
.form-notification-success .form-notification-content {
    border-color: var(--accent-color);
}

/* Error variant */
.form-notification-error .form-notification-content {
    border-color: #ff0000;
}

.form-notification-error .form-notification-message,
.form-notification-error .form-notification-close {
    color: #ff0000;
}

/* Terminal theme specific (green glow) */
body[data-theme="terminal"] .form-notification-content,
body[data-theme="amber"] .form-notification-content {
    box-shadow: 0 0 20px var(--shadow-color);
}

/* AI Era theme - modern styling */
body[data-theme="modern"] .form-notification-content {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body[data-theme="modern"] .form-notification-message {
    color: #1a1a1a;
}

body[data-theme="modern"] .form-notification-close {
    border-radius: 4px;
    border-color: #e0e0e0;
    color: #666;
}

body[data-theme="modern"] .form-notification-close:hover {
    background: #f0f0f0;
    color: #333;
}

body[data-theme="modern"] .form-notification-error .form-notification-message {
    color: #dc2626;
}

body[data-theme="modern"] .form-notification-error .form-notification-close {
    border-color: #fecaca;
    color: #dc2626;
}

/* Web 1.0 theme */
body[data-theme="web1"] .form-notification-content {
    background: #ffffff;
    border: 3px ridge #808080;
    color: #000000;
}

body[data-theme="web1"] .form-notification-message {
    color: #000000;
}

/* Web 2.0 theme */
body[data-theme="web2"] .form-notification-content {
    border-radius: 8px;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body[data-theme="web2"] .form-notification-message {
    color: #333333;
}

/* Windows 95 theme */
body[data-theme="win95"] .form-notification-content {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    box-shadow: none;
}

body[data-theme="win95"] .form-notification-message {
    color: #000000;
}

body[data-theme="win95"] .form-notification-close {
    border: none;
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    color: #000000;
    font-weight: bold;
}

body[data-theme="win95"] .form-notification-close:hover {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* CGA theme */
body[data-theme="cga"] .form-notification-content {
    background: #000000;
    border-color: #00ffff;
}

body[data-theme="cga"] .form-notification-message,
body[data-theme="cga"] .form-notification-close {
    color: #00ffff;
}

/* EGA theme */
body[data-theme="ega"] .form-notification-content {
    background: #000084;
    border-color: #ffff00;
}

body[data-theme="ega"] .form-notification-message,
body[data-theme="ega"] .form-notification-close {
    color: #ffff00;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .form-notification-content {
        padding: 12px 16px;
    }

    .form-notification-message {
        font-size: 13px;
    }
}

/* ========================================
   PORTAL PAGES - AI ERA STYLING
   ======================================== */

/* Portal Content Container (with sidebar offset) */
.portal-content {
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
    background: var(--bg-color);
    transition: margin-left 0.3s ease;
    font-family: var(--font-family);
}

/* Narrow sidebar adjustment */
body[data-theme="modern"] .ai-sidebar.narrow ~ .portal-content {
    margin-left: 60px;
}

/* Mobile responsive - no sidebar offset */
@media (max-width: 768px) {
    .portal-content {
        margin-left: 0 !important;
        padding: 20px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* Portal Page Header */
.portal-header {
    margin-bottom: 32px;
}

.portal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.portal-subtitle {
    font-size: 15px;
    color: var(--text-color-dim);
    margin: 0;
}

/* AI Era Cards */
.ai-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

body[data-theme="modern"].light-mode .ai-card {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ai-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

body[data-theme="modern"].light-mode .ai-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ai-card-header {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.ai-card-body {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

.ai-card-body p {
    margin-bottom: 12px;
}

.ai-card-body p:last-child {
    margin-bottom: 0;
}

.ai-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* AI Era Buttons */
.ai-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ai-btn-primary {
    background: var(--accent-color);
    color: #000000;
}

.ai-btn-primary:hover {
    background: var(--accent-color-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86, 218, 119, 0.3);
    color: #000000;
}

.ai-btn-primary:active {
    transform: translateY(0);
}

.ai-btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.ai-btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-color);
}

body[data-theme="modern"].light-mode .ai-btn-secondary {
    background: #FFFFFF;
    border-color: #D1D5DB;
}

body[data-theme="modern"].light-mode .ai-btn-secondary:hover {
    background: #F3F4F6;
}

.ai-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.ai-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* AI Era Badges */
.ai-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-family);
    line-height: 1.5;
}

.ai-badge-success {
    background: rgba(86, 218, 119, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(86, 218, 119, 0.3);
}

body[data-theme="modern"].light-mode .ai-badge-success {
    background: rgba(86, 218, 119, 0.1);
    color: #059669;
}

.ai-badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

body[data-theme="modern"].light-mode .ai-badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.ai-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

body[data-theme="modern"].light-mode .ai-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.ai-badge-gray {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-color-dim);
    border: 1px solid var(--border-color);
}

/* Portal Grid System */
.portal-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.portal-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.portal-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.portal-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .portal-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-grid-2,
    .portal-grid-3,
    .portal-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Portal Coming Soon Section */
.portal-coming-soon {
    text-align: center;
    padding: 60px 20px;
}

.portal-coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.portal-coming-soon-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 12px;
}

.portal-coming-soon-text {
    font-size: 15px;
    color: var(--text-color-dim);
    max-width: 500px;
    margin: 0 auto;
}

/* Portal Progress Bar */
.ai-progress {
    background: var(--border-color);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0;
}

.ai-progress-bar {
    background: var(--accent-color);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 8px;
}

/* Portal Stats */
.portal-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.portal-stat {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.portal-stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.portal-stat-label {
    font-size: 13px;
    color: var(--text-color-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .portal-stats {
        flex-direction: column;
    }
}

/* Portal List Items */
.portal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.portal-list-item:last-child {
    border-bottom: none;
}

.portal-list-item:hover {
    background: rgba(86, 218, 119, 0.05);
}

.portal-list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: #000000;
    font-size: 18px;
    flex-shrink: 0;
}

.portal-list-item-content {
    flex: 1;
}

.portal-list-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.portal-list-item-subtitle {
    font-size: 13px;
    color: var(--text-color-dim);
}

/* Portal Empty State */
.portal-empty {
    text-align: center;
    padding: 80px 20px;
}

.portal-empty-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.portal-empty-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.portal-empty-text {
    font-size: 14px;
    color: var(--text-color-dim);
    margin-bottom: 24px;
}

/* ============================================
   AI ERA TRAINING PAGES
   ============================================
   Training pages reuse ALL normal AI Era CSS.
   No custom overrides needed - the standard message styling works perfectly.
*/

/* Hide training page sections immediately to prevent flash */
body[data-training-id][data-theme="modern"] > section {
    display: none !important;
}

/* Training page message content: Style raw HTML elements */
body[data-training-id][data-theme="modern"] .ai-message-content h1,
body[data-training-id][data-theme="modern"] .ai-message-content h2,
body[data-training-id][data-theme="modern"] .ai-message-content h3,
body[data-training-id][data-theme="modern"] .ai-message-content h4,
body[data-training-id][data-theme="modern"] .ai-message-content h5,
body[data-training-id][data-theme="modern"] .ai-message-content h6 {
    display: block !important;
    margin: 16px 0 12px 0 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--text-color) !important;
}

body[data-training-id][data-theme="modern"] .ai-message-content h1 {
    font-size: 24px !important;
}

body[data-training-id][data-theme="modern"] .ai-message-content h2 {
    font-size: 20px !important;
}

body[data-training-id][data-theme="modern"] .ai-message-content h3 {
    font-size: 18px !important;
}

body[data-training-id][data-theme="modern"] .ai-message-content h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
}

body[data-training-id][data-theme="modern"] .ai-message-content p {
    display: block !important;
    margin-bottom: 12px;
    line-height: 1.5;
}

body[data-training-id][data-theme="modern"] .ai-message-content ul,
body[data-training-id][data-theme="modern"] .ai-message-content ol {
    display: block !important;
    margin: 12px 0;
    padding-left: 24px;
}

body[data-training-id][data-theme="modern"] .ai-message-content li {
    display: list-item;
    margin-bottom: 8px;
}

body[data-training-id][data-theme="modern"] .ai-message-content strong {
    font-weight: 600;
}

body[data-training-id][data-theme="modern"] .ai-message-content blockquote {
    display: block !important;
    margin: 16px 0;
    padding-left: 16px;
    border-left: 3px solid var(--accent-color);
    opacity: 0.9;
}

/* ========================================
   PHASE 3: INLINE STYLES → CSS CLASSES
   Replace inline style="" attributes with semantic CSS
   ======================================== */

/* Hidden by default (JavaScript shows when theme activates) */
#userMenu,
.web2-search-container,
#web10-nav,
#web10-guestbook,
#web10-webring,
#aiSidebarUserMenu,
#themeDropdown,
#win95-desktop-icons,
#win95Taskbar,
#loginSuccess {
    display: none;
}

/* Note: #era-logo NOT included above - JavaScript manages its visibility per theme */

/* Auth section visible by default */
#authSection {
    display: block;
}

/* Compact button styling */
.btn-compact {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

/* Terminal text with border separator */
.terminal-text-bordered {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Web 1.0 Guestbook hint text */
.web10-hint {
    font-size: 11px;
    margin: 5px 0;
    color: #666;
}

/* Web 1.0 Webring styles */
.webring-title {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: bold;
    color: #0000EE;
}

.webring-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.webring-arrow {
    font-size: 20px;
    text-decoration: none;
}

.webring-center {
    text-align: center;
    flex: 1;
}

.webring-member {
    margin: 0;
    font-size: 10px;
    color: #666;
}

.webring-name {
    margin: 2px 0;
    font-size: 11px;
}

.webring-footer {
    text-align: center;
    margin: 10px 0 0 0;
    font-size: 10px;
}

/* Utility: Flexible spacer */
.spacer {
    flex: 1;
}

/* ========================================
   PHASE 2 CONTINUED: DISPLAY UTILITY CLASSES
   Replace style.display manipulation with CSS classes
   ======================================== */

/* Hide element */
.hidden {
    display: none !important;
}

/* Show as block */
.visible-block {
    display: block !important;
}

/* Show as flex */
.visible-flex {
    display: flex !important;
}

/* Show as inline-block */
.visible-inline-block {
    display: inline-block !important;
}
