/* ============================================================
    BROWSER HEALTH DIAGNOSTIC CSS (Restored Layout)
   ============================================================ */

/* --- 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 (GOLD STANDARD) --- */
.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; }

.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; 
}

/* --- 3. AUDIT INTERFACE --- */
.diagnostic-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; min-height: 500px; }

.setup-gate-container { text-align: center; padding: 60px 20px; }
.gate-icon { font-size: 4rem; color: #25D366; margin-bottom: 20px; }
.start-audit-btn { background: #25D366; color: #000; padding: 15px 40px; border-radius: 4px; font-weight: bold; border: none; cursor: pointer; font-size: 1.1rem; }

/* Health Cards */
.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.health-card { background: rgba(255,255,255,0.03); border: 1px solid #333; padding: 20px; border-radius: 8px; }
.card-label { color: #888; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 8px; }
.card-value { font-size: 1.5rem; color: #fff; font-weight: bold; margin-bottom: 5px; }
.card-status { font-size: 0.8rem; font-weight: bold; }

.status-ok .card-status { color: #25D366; }
.status-bad .card-status { color: #ff4444; }

/* Log Area */
.audit-log-container { margin-top: 30px; background: #000; border: 1px solid #333; border-radius: 6px; padding: 15px; }
.log-title { color: #666; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 10px; border-bottom: 1px solid #222; padding-bottom: 5px; }
.audit-log-content { height: 150px; overflow-y: auto; font-family: monospace; }

/* --- 4. CTA SECTION --- */
.cta-section { background: #1a1a1a; padding: 60px 20px; text-align: center; border-top: 1px solid #333; margin-top: 40px; width: 100%; }
.book-now-btn { display: inline-block; background: #25D366; color: #000; padding: 15px 35px; border-radius: 50px; font-weight: bold; text-decoration: none; }

@media (max-width: 900px) {
    .dns-container { flex-direction: column !important; padding: 15px !important; }
    .tool-sidebar-column { width: 100% !important; order: 2; }
}