/* ============================================================
    SECURITY INTELLIGENCE LAB CSS (Gap & CTA Fixed)
   ============================================================ */

/* --- 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; }
/* Desktop min-height stays for layout stability */
.dns-container { display: flex; flex-direction: row; gap: 30px; padding: 30px; max-width: 1400px; margin: 0 auto; min-height: 600px; }

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

.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:hover, .tool-sidebar button:hover {
    background: #252525;
    border-color: #444;
    color: #fff !important;
}

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

.tool-sidebar a.active i, .tool-sidebar button.active i { color: #000 !important; }

.sidebar-hacker-card { margin-top: 20px; border: 1px solid #ff4444; background: #1a1a1a; padding: 15px; border-radius: 8px; }
.hacker-icon { color: #ff4444 !important; }
.hacker-logic-text { font-size: 0.75rem; color: #888; line-height: 1.4; margin: 10px 0 0 0; }

/* --- 3. MAIN CONTENT --- */
.pass-main-content { flex: 1; min-width: 0; }
.pass-container { background: #1a1a1a; border-radius: 12px; padding: 25px; border: 1px solid #333; }
.diagnostic-wrapper { border-top: 4px solid #33b5e5; }
.section-title-white { color: #fff; margin-top: 0; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.color-blue { color: #33b5e5; }
.color-green { color: #25D366; }

/* --- 4. AUDIT & GENERATOR ELEMENTS --- */
.password-audit-input { width: 100%; background: #111; border: 1px solid #444; color: #fff; padding: 15px; border-radius: 5px; font-size: 1.1rem; margin-bottom: 15px; }
.strength-bar-container { height: 10px; background: #222; border-radius: 5px; overflow: hidden; margin-bottom: 15px; }
.strength-bar-fill { width: 0%; height: 100%; transition: width 0.3s; }
.crack-time-display { background: #000; padding: 25px; border-radius: 8px; border: 1px solid #222; text-align: center; margin-bottom: 15px; }
.crack-result-value { font-size: 1.8rem; font-weight: bold; margin: 5px 0; }
.hacker-report-box { background: rgba(255,68,68,0.08); padding: 15px; border: 1px dashed #ff4444; border-radius: 5px; }
.report-list { color: #ddd; font-size: 0.75rem; padding-left: 20px; line-height: 1.8; margin-top: 10px; }

.generator-gate { text-align: center; padding: 30px; background: #111; border-radius: 8px; border: 1px solid #222; }
.generator-active-content { background: #111; padding: 25px; border-radius: 8px; border: 1px solid #333; }
.slider-value-display { color: #25D366; font-weight: bold; font-size: 1.1rem; }
.entropy-slider { width: 100%; accent-color: #25D366; cursor: pointer; height: 8px; }
.generated-password-display { width: 100%; background: #000 !important; border: 1px solid #444; color: #25D366; font-family: monospace; font-size: 1.4rem; text-align: center; padding: 15px; border-radius: 5px; margin-bottom: 20px; }

/* --- 5. BUTTONS & CTA --- */
button.scan { padding: 12px 24px; background: #25D366 !important; border: 1px solid #25D366; color: #000 !important; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.secondary-btn { background: #333 !important; border-color: #444 !important; color: #fff !important; }

/* FIX: CTA Section & Missing Description */
.cta-section { background: #1a1a1a; padding: 60px 20px; text-align: center; border-top: 1px solid #333; margin-top: 40px; width: 100%; }
.cta-section h3 { font-size: 2rem; color: #fff; margin-bottom: 15px; }
.cta-section p { color: #aaa; margin-bottom: 30px; font-size: 1.1rem; } /* Restore Description Appearance */
.book-now-btn { display: inline-block; background: #25D366; color: #000; padding: 15px 35px; border-radius: 50px; font-weight: bold; text-decoration: none; transition: 0.2s; }

/* --- 6. MOBILE FIXES --- */
@media (max-width: 900px) {
    /* FIX: Kills the white bar gap by overriding desktop min-height */
    .dns-container { 
        flex-direction: column !important; 
        padding: 15px !important; 
        min-height: 0 !important; 
        height: auto !important;
    }
    
    .tool-sidebar-column { 
        width: 100% !important; 
        order: 2; 
        margin-top: 0 !important; 
    }
    
    .tool-sidebar { display: none !important; }
    .pass-main-content { order: 1; width: 100% !important; }
    
    /* Hero Font Fix (prevents stretch) */
    .slider-overlay h1 { font-size: 1.6rem !important; line-height: 1.1 !important; margin-bottom: 8px !important; }
    .hero-strapline { font-size: 0.85rem !important; line-height: 1.2 !important; }
    .slider-overlay { height: auto !important; }

    .gen-button-row { display: flex; flex-direction: column; gap: 10px; }
    
    /* FIX: Pull CTA tight to content */
    .cta-section { margin-top: 0 !important; padding: 40px 15px !important; }
    .book-now-btn { width: 100%; text-align: center; }
}