:root {
    --bg-primary: #f4f7fa;
    --bg-surface: #e8f4fb; /* was ffffff */
    --bg-surface-alt: #ebf1f6;
    --bg-surface-active: #b8eafd;
    --bg-invert: #1294d7;
    --bg-card: #ffffff;
    --border-color: #d1dce5;
    --border-light: #e3ebf2;
    
    --text-primary: #1e293b;
    --text-invert: #f8fafc;
    --text-secondary: #475569;
    --text-muted: #74849b;
    --text-light: #94a3b8;
    
    /* Technical CAD / Blueprint Accent Colors */
    --accent-blue: #0284c7;
    --accent-blue-hover: #0369a1;
    --accent-blue-subtle: #e0f2fe;
    --accent-cyan: #0888c2;
    --accent-gold: #d97706;
    --accent-green: #059669;
    --accent-border: #38bdf8;
    
    --header-gradient: linear-gradient(135deg, #0a3d62 0%, #1e5f8a 50%, #082b45 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 15px -3px rgba(2, 132, 199, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
	--icon-brightness: brightness(100%); --icon-brightness2: brightness(100%);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    /* Typography: Bold Technical Titles (Rajdhani) & Narrow Precision Body (Barlow Semi Condensed) */
    --font-heading: "Rajdhani", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --font-sans: "Barlow Semi Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Cascadia Code", "Fira Code", Consolas, "Courier New", monospace;
	--bw: opacity(0.8);

	--pattern-grid-size: 80px;
    --pattern-micro-size: 16px;
    --pattern-scan-size: 8px;
}

input {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1px 4px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
input.active {background: var(--bg-surface-active); border: 1px solid var(--accent-border);}
input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-surface);
}

/* ==============================================================================
   Top Utility Bar (Language Switcher + Theme Switcher + Search)
   ============================================================================== */

.top-bar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 24px;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.top-bar-inner {
    /* max-width: 1400px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-blue);
}

.top-bar-brand-icon {
    font-size: 1.1rem;
}
.top-bar-brand-icon img {vertical-align: middle; filter: var(--icon-brightness);}

.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Bar */
.top-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.top-search-input {
    background: var(--bg-surface-alt) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm);
    padding: 6px 36px 6px 12px;
    font-size: 0.85rem;
    color: var(--text-primary) !important;
    width: 248px;
    transition: all 0.2s ease;
}

.top-search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    width: 300px;
    background: var(--bg-surface);
}

.top-search-btn {
    position: absolute;
    right: 0px;   top: 0px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.top-search-btn span {filter: saturate(0.75) opacity(0.6) contrast(0.8); font-size: 120%;}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-alt);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.lang-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 4px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.lang-btn:hover {
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--accent-blue);
}

.lang-btn.active {
    background-color: var(--accent-blue);
    color: #ffffff;
}


/* Corrections */
div.title_left {padding-left:14px;}
table#fmt {margin:8px 0 14px 0; border: 1px solid #80808080; border-collapse: separate; border-radius:6px;}
table#fmt td, table#fmt th {border: 1px dotted #80808080;}
.intro_dragdrop_text img {padding-top: 6px;}
.intro_dragdrop_text img:hover {opacity: 0.5; translate: 2px 2px; animation-name: shake; animation-duration: 1s;}


