/* ============================================================
   CORE INDUSTRIAL 2.0 - FONT & NAV OVERHAUL
   ============================================================ */

:root {
    --bg-black: #0c0c0e; 
    --bg-panel: #1a1a1c; 
    --border-dim: #3f3f46; 
    --cyan-neon: #f59e0b; 
    --yellow-caution: #ca8a04; 
    --rust-accent: #78350f;
}

/* Der ultimative Font-Reset für ALLES */
* {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace !important;
    box-sizing: border-box;
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg-black);
    color: #d1d5db;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
}

/* --- NAVIGATION VERGRÖSSERT --- */
nav {
    height: 90px !important; /* Von 70px auf 90px erhöht */
    background: #111113; 
    border-bottom: 5px solid var(--rust-accent); 
    display: grid;
    grid-template-columns: 350px 1fr 350px; 
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.system-status {
    font-size: 0.9rem; /* Größerer Text */
    color: var(--yellow-caution); 
    font-weight: 900;
    border-left: 6px solid var(--yellow-caution);
    padding-left: 20px;
    text-transform: uppercase;
}

#nav-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Mehr Platz zwischen den Items */
}

.nav-item {
    display: flex;
    flex-direction: column; /* Icon über dem Text für massiven Look */
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: #71717a;
    padding: 10px 20px;
    min-width: 110px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    color: var(--cyan-neon);
    background: rgba(245, 158, 11, 0.08);
    border: 2px solid var(--border-dim);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.nav-icon { 
    width: 24px !important; /* Größere Icons */
    height: 24px !important; 
}

.nav-label { 
    font-size: 0.85rem !important; /* Größere Beschriftung */
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* --- RESTLICHE ELEMENTE --- */
.industrial-card {
    background: var(--bg-panel);
    border: 2px solid var(--border-dim);
    border-left: 10px solid var(--rust-accent);
    padding: 30px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.7), 6px 6px 0px rgba(0,0,0,0.9);
}

button {
    font-family: 'Consolas', monospace !important;
    font-size: 1rem !important;
    padding: 15px 25px !important;
}

/* Buttons im Loadout-Editor */
#btn-create-profile, 
button[onclick="saveLoadout()"],
.industrial-button {
    background: var(--cyan-neon, #06b6d4) !important;
    color: #000 !important;
    border: none;
    font-family: 'Consolas', monospace;
    font-weight: 900;
    text-transform: uppercase;
    padding: 10px 20px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

#btn-create-profile:hover, 
button[onclick="saveLoadout()"]:hover {
    background: #fff !important;
    box-shadow: 0 0 15px var(--cyan-neon, #06b6d4);
}

/* Die Dropdowns (Selects) */
.laser-select, .module-select, select {
    background: #111 !important;
    color: var(--cyan-neon) !important;
    border: 1px solid #333 !important;
    padding: 5px;
    font-family: 'Consolas', monospace;
}

@keyframes pulse-cyan {
    0% { text-shadow: 0 0 0px var(--cyan-neon); }
    50% { text-shadow: 0 0 15px var(--cyan-neon); transform: scale(1.05); }
    100% { text-shadow: 0 0 0px var(--cyan-neon); }
}

.pulse-glow {
    animation: pulse-cyan 0.5s ease-out;
}

#telemetry-panel .stat-box {
    transition: border-color 0.3s ease;
}

#telemetry-panel .stat-box:hover {
    border-color: var(--cyan-neon);
}

/* --- DB Profil Liste Styling --- */
#profile-list {
    padding-right: 5px;
}

/* Den leeren Bereich kompakter machen */
#active-profile-display {
    text-align: center;
    color: #333;
    padding: 40px 0 !important; /* Von 120px auf 40px reduziert */
    border: 1px dashed rgba(255,255,255,0.05);
    margin-bottom: 20px;
}

/* Der Editor-Content soll die volle Breite/Höhe nutzen */
#editor-content {
    width: 100%;
    margin-top: 0;
}

/* Optional: Die Karten-Überschriften etwas kompakter */
.industrial-card h2 {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Custom Scrollbar für den Terminal-Look */
#profile-list::-webkit-scrollbar { width: 4px; }
#profile-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
#profile-list::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 2px; }

.profile-item {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid #3f3f46; /* Inaktiver Status */
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-item:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    border-left-color: var(--cyan-neon);
    transform: translateX(4px);
}

.profile-item.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    border-left-color: #f59e0b;
    box-shadow: inset 5px 0 15px rgba(245, 158, 11, 0.05);
}

.profile-name-label {
    font-size: 0.85rem;
    font-weight: 900;
    color: #e4e4e7;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.profile-meta-label {
    font-size: 0.6rem;
    color: #52525b;
    font-family: monospace;
    text-transform: uppercase;
}

.profile-item.active .profile-name-label { color: #f59e0b; }