/* =====================================================================
   GLOBALES DESIGN & SCHRIFTARTEN
   ===================================================================== */
@font-face {
    font-family: 'BlinkHeadFill';
    src: url('../BlinkHead-Fill.ttf') format('truetype');
}

body { 
    font-family: Arial, sans-serif; 
    background-color: #121212; 
    color: #e0e0e0; 
    margin: 0; 
    padding: 0;
}

/* =====================================================================
   ZENTRALE SIDEBAR STEUERUNG (ULTRA-KOMPAKT AUF 38PX SCHRUMPFEN)
   ===================================================================== */
/* Suche diese Klasse in deiner static/css/style.css und passe sie an: */
.sidebar-container {
    width: 38px; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center; 
    padding: 5px 0 25px 0 !important; 
    flex-shrink: 0; 
    position: sticky; 
    top: 0; 
    box-sizing: border-box;
    
    /* ERWEITERUNG: Zwingt die Sidebar, ÜBER dem Canvas zu liegen und Events abzufangen! */
    background-color: #121212 !important; 
    z-index: 9999999 !important;
}


.sidebar-logo-wrapper {
    position: relative; /* Wichtig für die absolute Positionierung des Menüs */
    cursor: pointer;
    margin-top: 5px !important;    
    margin-bottom: 5px !important;
}

.sidebar-logo {
    width: 28px !important;       
    height: auto !important;
    display: block !important;
    opacity: 0.7 !important;        
    visibility: visible !important;
    transition: all 0.15s ease-in-out !important;
}

/* NEU: Taktischer Glow-Effekt beim Hovern */
.sidebar-logo-wrapper:hover .sidebar-logo {
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px #00fff6) !important;
}

/* NEU: Das ausklappbare Logo-Menü */
.logo-dropdown-menu {
    display: none;
    position: absolute;
    top: 5px;
    left: 45px; /* Schiebt das Menü flüssig rechts neben die schmale Sidebar */
    background: #141414;
    border: 1px solid #252525;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    z-index: 10000;
    min-width: 120px;
    font-family: monospace;
    font-size: 0.85em;
    overflow: hidden;
}

.logo-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #aaaaaa;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    text-align: left;
}

.logo-dropdown-menu a:hover {
    background: #1c2526;
    color: #00fff6;
}

.logo-dropdown-menu .menu-divider {
    border-top: 1px solid #252525;
}

.vertical-title {
    font-family: 'BlinkHeadFill', Arial, sans-serif; 
    color: #00adb5; 
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 1.2em;             
    letter-spacing: 2px;
    margin-top: -2px !important;   
    margin-bottom: 5px !important; 
    white-space: nowrap;
}

.brand-suffix {
    font-family: Arial, sans-serif !important;
    font-size: 0.55em !important;            
    color: #444444 !important;               
    margin-top: -1px !important;
    display: inline-block;
    position: relative !important;
    left: -3px !important; 
}

/* =====================================================================
   HOCHKANT-NAVIGATION (MAXIMAL LINKSBÜNDIG)
   ===================================================================== */
.tab-navigation { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: flex-end; 
    gap: 0px; 
    width: 100%;
}

.tab-link { 
    writing-mode: vertical-lr;
    transform: rotate(180deg); 
    padding: 14px 6px;            
    color: #777777; 
    text-decoration: none; 
    font-weight: bold; 
    transition: all 0.15s ease-in-out; 
    font-size: 0.9em;
    display: block;
    white-space: nowrap;
    width: 18px; 
    text-align: center;
    border-left: 2px solid transparent; 
    margin-left: -2px; 
    border-radius: 0; 
}

.tab-navigation a:first-child { border-radius: 0 4px 0 0; }
.tab-navigation a:last-child { border-radius: 0 0 4px 0; }

.tab-link:hover { 
    background-color: #1a1a1a; 
    color: #00adb5; 
}

.tab-link.active { 
    background-color: #1c2526; 
    color: #00fff6; 
    border-left: 2px solid #00adb5; 
}

/* =====================================================================
   HAUPTINHALT-STEUERUNG (KNACKIGES INNENPOLSTER ZUR TRENNLINIE)
   ===================================================================== */
.main-content {
    flex-grow: 1; 
    padding: 10px 40px 20px 12px !important; /* Unteres Padding leicht verringert */
    border-left: 2px solid #252525; 
    min-height: 100vh; 
    box-sizing: border-box; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start !important; 
    gap: 15px; 
    overflow-x: hidden;
}


/* =====================================================================
   TABELLEN & FORMULARE (STRIKT ISOLIERT)
   ===================================================================== */
input[type="submit"] { padding: 10px 20px; background-color: #00adb5; border: none; color: white; cursor: pointer; border-radius: 4px; }
input[type="submit"]:hover { background-color: #007c82; }

/* KORREKTUR: Die 300px Breite gilt JETZT exklusiv für diese Klasse, nicht mehr global! */
.search-input { 
    padding: 10px; 
    width: 300px; 
    background-color: #222; 
    border: 1px solid #444; 
    color: #fff; 
    border-radius: 4px; 
}

table { width: 100%; border-collapse: collapse; margin-top: 20px; background-color: #1e1e1e; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid #333; }
table th { background-color: #252525; color: #00adb5; cursor: pointer; user-select: none; }
table th:hover { background-color: #2d2d2d; color: #00fff6; }
table th::after { content: ' ↕'; font-size: 0.8em; color: #555; }
table tr:hover { background-color: #2a2a2a; }

/* =====================================================================
   FOOTER (MITSCROLLEND)
   ===================================================================== */
.scrolling-footer {
    margin-top: 15px !important; 
    padding-top: 10px;
    text-align: center;
    color: #444;
    font-size: 0.72em;
    border-top: 1px solid #222;
    letter-spacing: 1px;
    width: 100%;
}

/* =====================================================================
   NEU: SCI-FI LOGIN INTERFACE DESIGN
   ===================================================================== */
.login-body { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100dvh; 
    background: #121212; 
}

.login-container {
    background: #141414; 
    padding: 35px 30px; 
    border-radius: 6px; 
    border: 1px solid #252525; 
    box-shadow: 0 0 25px rgba(0, 173, 181, 0.15); 
    width: 320px; 
    text-align: center;
    box-sizing: border-box;
}

.login-logo {
    width: 42px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

.login-title {
    font-family: 'BlinkHeadFill', Arial, sans-serif; 
    color: #00adb5; 
    font-size: 1.9em;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    line-height: 1;
}

.login-subtitle {
    color: #444; 
    font-size: 0.72em; 
    margin: 0 0 30px 0; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    font-weight: bold;
}

.login-input {
    width: 100%; 
    box-sizing: border-box; 
    margin-bottom: 15px; 
    padding: 12px; 
    background: #1a1a1a; 
    border: 1px solid #333; 
    color: #fff; 
    border-radius: 4px; 
    font-family: monospace;
    font-size: 0.9em;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: #00adb5;
    outline: none;
}

.login-submit {
    width: 100%; 
    padding: 12px; 
    background-color: #00adb5; 
    border: none; 
    color: white; 
    cursor: pointer; 
    border-radius: 4px;
    font-weight: bold; 
    font-size: 0.95em;
    letter-spacing: 1px;
    transition: background-color 0.15s;
}

.login-submit:hover { 
    background-color: #007c82; 
}

.error-box {
    background: rgba(255, 30, 86, 0.1); 
    border: 1px solid #ff1e56; 
    color: #ff1e56; 
    padding: 10px; 
    border-radius: 4px; 
    margin-bottom: 20px; 
    font-size: 0.85em;
    font-family: monospace;
    text-align: left;
}

/* =====================================================================
   TAKTI-FARBEN FÜR INAKTIVEN-MAPPING IM LEADERBOARD
   ===================================================================== */
/* Echte Inaktive: Dunkles, taktisches Orange-Rot */
tr.row-inactive {
    background-color: rgba(255, 87, 34, 0.12) !important;
    border-bottom: 1px solid rgba(255, 87, 34, 0.3) !0important;
}
tr.row-inactive:hover {
    background-color: rgba(255, 87, 34, 0.22) !important;
}

/* Geister-Inaktive: Giftiges, taktisches Cyber-Gelb */
tr.row-ghost {
    background-color: rgba(255, 246, 0, 0.08) !important;
    border-bottom: 1px solid rgba(255, 246, 0, 0.25) !important;
}
tr.row-ghost:hover {
    background-color: rgba(255, 246, 0, 0.15) !important;
}

/* =====================================================================
   Z-INDEX HIERARCHIE: SYSTEM-AKTE SCHWEBT ÜBER DER SIDEBAR
   ===================================================================== */
#systemDetailsCard {
    /* Zwingt das verschiebbare Klick-Popup physisch auf die allerhöchste Ebene */
    z-index: 100000000 !important;
}

/* Der schlanke Hover-Tooltip bleibt ebenfalls über der Sidebar, falls man am Rand hovert */
#mapTooltip {
    z-index: 100000001 !important;
}
