/* ==========================================================================
   BASIS STYLING & ULTRADARK MODE
   ========================================================================== */
   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000000;
    color: #e0e0e0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- DÜNNE TÜRKISE SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.4);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 184, 166, 0.8);
}

/* ==========================================================================
   SIDEBAR (LINKS) & REITER
   ========================================================================== */
.sidebar {
    width: 320px;
    background-color: #000000;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.nav-item-dashboard {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    outline: none;
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #d1d1d1;
    margin: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.sidebar-title:hover {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8892b0;
    margin: 20px 0 4px 5px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.sidebar-section-subtitle {
    font-size: 0.75rem;
    color: #8892b0;
    margin: 12px 0 4px 5px;
    font-weight: 600;
}

.sidebar-section-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-section-content.collapsed {
    display: none;
}

.sidebar-section-title.collapsible {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.sidebar-section-title.collapsible:hover {
    color: #ffd700;
}

/* ==========================================================================
   GEILES, CLEANES REITER-DESIGN (SILBERNE BASIS)
   ========================================================================== */
.nav-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    color: #a3a3a3;
    padding: 14px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(200, 200, 200, 0.15);
    text-align: left;
    width: 100%;
    outline: none;
}

.nav-item:hover:not(.active) {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(200, 200, 200, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   CLEANE LEUCHTENDE OUTLINE-GLOWS (AKTIVIERTE REITER)
   ========================================================================== */

/* Standard-Reiter (Basic Textbeispiele) -> SILBER GLOW */
.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: #ffffff;
    border-color: #d1d1d1;
    box-shadow: 0 0 15px rgba(200, 200, 200, 0.4), inset 0 0 6px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

/* 📊 Übersicht-Button -> GOLD GLOW */
.nav-item.overview-btn {
    color: #a3a3a3;
    border-color: rgba(200, 200, 200, 0.15);
}
.nav-item.overview-btn.active {
    background: linear-gradient(135deg, rgba(020, 184, 166, 0.05), rgba(020, 184, 166, 0.01));
    color: #14b8a6;
    border-color: #14b8a6;
    box-shadow: 0 0 15px rgba(020, 184, 166, 0.4), inset 0 0 6px rgba(020, 184, 166 0.1);
}

/* 🚫 Sperren-Button -> ROTER GLOW */
.nav-item.sperren-btn {
    color: #a3a3a3;
    border-color: rgba(200, 200, 200, 0.15);
}
.nav-item.sperren-btn.active {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.05), rgba(255, 77, 77, 0.01));
    color: #ff4d4d;
    border-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4), inset 0 0 6px rgba(255, 77, 77, 0.1);
}

/* 🚫 Verbote-Button -> ORANGER GLOW */
.nav-item.howitworks-btn {
    color: #a3a3a3;
    border-color: rgba(200, 200, 200, 0.15);
}
.nav-item.howitworks-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.01));
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 6px rgba(255, 215, 0, 0.1);
}

/* 🖥️ Interface Untermenü-Buttons -> TÜRKIS GLOW */
.nav-item.interface-sub-btn {
    color: #a3a3a3;
    border-color: rgba(200, 200, 200, 0.15);
    padding: 10px 15px;
    font-size: 0.9rem;
}
.nav-item.interface-sub-btn.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(20, 184, 166, 0.01));
    color: #14b8a6;
    border-color: #14b8a6;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.4), inset 0 0 6px rgba(20, 184, 166, 0.1);
}

/* 🎭 Wahrheitspflicht (Outing) -> LILA GLOW */
.nav-item.outing-btn {
    color: #a3a3a3;
    border-color: rgba(200, 200, 200, 0.15);
}
.nav-item.outing-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(168, 85, 247, 0.01));
    color: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), inset 0 0 6px rgba(168, 85, 247, 0.1);
}

/* 🚫 Verbotene Berufe -> ROTER GLOW */
.nav-item.forbidden-btn {
    color: #a3a3a3;
    border-color: rgba(200, 200, 200, 0.15);
}
.nav-item.forbidden-btn.active {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.05), rgba(255, 77, 77, 0.01));
    color: #ff4d4d;
    border-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4), inset 0 0 6px rgba(255, 77, 77, 0.1);
}


/* ==========================================================================
   MAIN CONTENT AREA & DASHBOARD CARDS
   ========================================================================== */
.main-container {
    position: relative; /* Container bleibt an seinem Platz */
    width: calc(100% - 250px); /* Oder deine Sidebar-Breite */
    height: 100vh;
}

.dashboard-wrapper {
    padding: 40px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.db-box {
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.welcome-silver { 
    border: 1px solid rgba(200, 200, 200, 0.3); 
}
.welcome-silver h1 { 
    color: #ffffff; 
    margin-bottom: 12px; 
    font-size: 1.8rem; 
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.warning-red { 
    border: 1px solid rgba(255, 77, 77, 0.3); 
    color: #ffccd5; 
}

.info-gold { 
    border: 1px solid rgba(255, 215, 0, 0.3); 
    color: #fff3cd; 
}
.info-gold h1 {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.border-dashed {
    border-style: dashed !important;
}

/* ==========================================================================
   VIEWS & ZENTRIERUNG
   ========================================================================== */
#dashboard-view, #interface-view, #overview-view, #chat-view, #sperren-view {
    display: none; /* Alles ist standardmäßig weg */
    width: 100%;
    height: 100%;
}

#sperren-view {
    display: flex;
    justify-content: center; /* Zentriert horizontal */
    padding: 30px;
    overflow-y: auto;
}

.dashboard-wrapper {
    width: 100%;
    max-width: 900px; /* Begrenzt die Breite, damit es nicht "zerläuft" */
    margin: 0 auto;  /* Zentriert den Wrapper selbst */
}

#interface-view {
    display: none;
    justify-content: center;
    align-items: center;
}

.interface-subview {
    width: 100%;
    max-width: 950px;
    margin: auto;
}

#subview-dialog-sub {
    max-width: none; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close-btn {
    margin-top: 20px; 
    text-align: center; 
    width: auto; 
    display: inline-block; 
    padding: 10px 25px;
}

/* ==========================================================================
   NEUES ZWEITES REITERMENÜ (SMOOTH DIALOG SUB-SIDEBAR)
   ========================================================================== */
.sub-sidebar {
    width: 0px; /* Startet geschlossen */
    opacity: 0;
    visibility: hidden;
    background-color: #050505;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Ultra smoother Slide-In */
}

/* Wenn aktiv, weitet sich der Reiter aus und wird sichtbar */
.sub-sidebar.open {
    width: 300px;
    padding: 25px 20px;
    opacity: 1;
    visibility: visible;
}

/* Spezial-Anpassung für den Aktiv-Zustand des Dialog-Triggers */
.nav-item.dialog-trigger-btn.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.02));
    color: #14b8a6;
    border-color: #14b8a6;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}
