/* ============================================================
    PIXEL FIXER MASTER CSS (Restored Layout & Title Header)
   ============================================================ */

/* --- 1. CORE LAYOUT --- */
* { box-sizing: border-box; }
body { background-color: #2a2a2a; margin: 0; overflow-x: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.dns-page-wrapper { background-color: #1e1e1e; color: #e0e0e0; padding-bottom: 40px; }

/* THE FIXED HEADER TITLE BAR */
.dns-header { 
    background: #2d2d2d !important; 
    padding: 20px !important; 
    font-size: 24px !important; 
    font-weight: bold !important; 
    border-bottom: 2px solid #444 !important; 
    color: #fff !important; 
    text-align: center !important; 
    width: 100% !important; 
    display: block !important;
}

.dns-container { display: flex; flex-direction: row; gap: 30px; padding: 30px; max-width: 1400px; margin: 0 auto; min-height: 600px; align-items: flex-start; }

/* --- 2. SIDEBAR (UNIFIED BRANDING) --- */
.tool-sidebar-column { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.tool-sidebar { display: flex; flex-direction: column; gap: 10px !important; }

.tool-sidebar a, .tool-sidebar button {
    background: #1a1a1a; color: #ccc !important; border: 1px solid #333; padding: 12px 15px; text-align: left;
    border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 0.9rem;
    transition: all 0.2s ease; width: 100%; text-decoration: none;
}

.tool-sidebar a i, .tool-sidebar button i { width: 20px !important; font-size: 1.1rem; color: #25D366 !important; text-align: center; }

.tool-sidebar a.active, .tool-sidebar button.active { 
    background: #25D366 !important; color: #000 !important; font-weight: bold !important; border-color: #25D366 !important; 
}
.tool-sidebar a.active i, .tool-sidebar button.active i { color: #000 !important; }

/* YELLOW INFO CARD BORDER */
.sidebar-info-card { 
    background: #1a1a1a; border: 1px solid #333; padding: 15px; border-radius: 8px; 
    font-size: 0.8rem; line-height: 1.5; border-top: 4px solid #ffbb33 !important; 
}
.sidebar-info-card i { color: #25D366 !important; margin-bottom: 10px; display: block; }

/* --- 3. MAIN CONTENT --- */
.pixel-main-content { flex: 1; min-width: 0; }
.pass-container { background: #1a1a1a; border-radius: 12px; padding: 40px; border: 1px solid #333; border-top: 4px solid #25D366; position: relative; min-height: 500px; }

.lab-landing { display: flex; flex-direction: column; align-items: center; text-align: center; }
.diagnostic-icon { font-size: 4rem; color: #25D366; margin-bottom: 20px; }
.lab-landing h2 { color: #fff; margin-bottom: 15px; }
.lab-landing p { color: #888; max-width: 500px; line-height: 1.6; margin-bottom: 25px; }

/* --- 4. FULLSCREEN LAB INTERFACE --- */
#lab-interface { position: relative; width: 100%; height: 100%; }
#floating-status { position: absolute; background: rgba(0,0,0,0.8); color: #fff; padding: 15px; border-radius: 8px; pointer-events: none; text-align: center; border: 1px solid #333; z-index: 1000; }
#mode-name { color: #25D366; font-weight: bold; font-family: monospace; }

#pixel-zone:fullscreen, #pixel-zone:-webkit-full-screen { width: 100vw !important; height: 100vh !important; padding: 0 !important; border: none !important; }

/* --- 5. BUTTONS & MOBILE --- */
button.scan, .launch-btn { background: #25D366 !important; color: #000 !important; border: 1px solid #25D366; padding: 12px 24px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.launch-btn { border-radius: 50px !important; padding: 18px 45px !important; font-size: 1rem; }

@media (max-width: 900px) {
    .dns-header { font-size: 20px; padding: 15px; }
    .dns-container { flex-direction: column !important; padding: 15px !important; }
    .tool-sidebar-column { display: none !important; }
}