/* ============================================================
    WHOIS TOOL MASTER CSS (whois-tool.css)
   ============================================================ */

/* --- 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; 
    overflow-x: hidden;
}
header.dns-header { background: #2d2d2d; padding: 20px; font-size: 24px; font-weight: bold; border-bottom: 2px solid #444; color: #fff; text-align: center; }

/* THE GAP FIX: Changed min-height to auto so it doesn't force a void */
.dns-container { 
    display: flex; flex-direction: row; gap: 30px; padding: 30px; 
    max-width: 1400px; margin: 0 auto; min-height: auto; 
}

/* --- 2. SIDEBAR --- */
.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 button, .tool-sidebar a { background: #1a1a1a; color: #ccc; 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 button i, .tool-sidebar a i { width: 20px !important; font-size: 1.1rem; color: #25D366; text-align: center; }
.tool-sidebar button:hover, .tool-sidebar a:hover { background: #252525; border-color: #444; color: #fff; }
.tool-sidebar button.active, .tool-sidebar a.active { background: #25D366 !important; color: #000 !important; border-color: #25D366; font-weight: bold; }
.tool-sidebar button.active i, .tool-sidebar a.active i { color: #000 !important; }

/* --- 3. MAIN CONTENT --- */
.sidebar-column-whois { min-width: 260px; }
.security-verification { background: #1a1a1a; padding: 15px; border-radius: 8px; border: 1px solid #333; }
.status-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.verification-text { font-size: 0.8rem; line-height: 1.3; color: #ccc; margin: 0; }

.whois-main-content { flex: 1; }
.view-title { margin-top: 0; }
.view-subtitle { margin-bottom: 20px; color: #aaa; }

.whois-search-group { display: flex; gap: 10px; margin-bottom: 25px; }
.whois-target-field { flex: 3; }
.whois-scan-btn { flex: 1; margin: 0; }

/* THE BOX FIX: Hide results until they exist */
#whois-results {
    display: none;
    margin: 0;
    padding: 0;
}

.whois-terminal-output {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.85rem;
    background: #111 !important;
    padding: 20px;
    color: #e0e0e0;
    border: 1px solid #333;
    line-height: 1.5;
    border-radius: 8px;
    width: 100%;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin-top: 10px; /* Space only after scan */
    margin-bottom: 20px;
}

/* --- 4. BRANDED BUTTONS & INPUTS --- */
.dns-input { 
    width: 100%; padding: 12px; border: 1px solid #555; background: #2a2a2a; color: #fff; 
    border-radius: 4px; font-size: 16px !important; 
}
button.scan { 
    padding: 12px 24px; background: #25D366 !important; border: 1px solid #25D366; 
    color: #000 !important; border-radius: 4px; cursor: pointer; font-weight: bold; 
    display: inline-block; transition: all 0.2s ease;
}
button.scan:hover { background: #20ba5a !important; border-color: #20ba5a; }

/* --- 5. CTA SECTION --- */
.cta-section { background: #1a1a1a; padding: 60px 20px; text-align: center; border-top: 1px solid #333; margin-top: 0px; width: 100%; }
.cta-section h3 { font-size: 2rem; color: #fff; margin-bottom: 15px; }
.book-now-btn { display: inline-block; background: #25D366; color: #000; padding: 15px 35px; border-radius: 50px; font-weight: bold; text-decoration: none; font-size: 1.1rem; transition: all 0.2s ease; }

/* --- 6. MOBILE OVERHANG SURGERY --- */
@media (max-width: 900px) {
    .dns-container { flex-direction: column !important; padding: 15px !important; gap: 10px !important; }
    .tool-sidebar-column { width: 100% !important; order: 2; }
    .tool-sidebar { display: none !important; }
    
    .whois-main-content { width: 100% !important; order: 1; min-width: 0; overflow-x: hidden !important; }
    .whois-search-group { flex-direction: column; margin-bottom: 15px; }
    
    .whois-terminal-output { padding: 15px !important; font-size: 0.75rem !important; }
    
    /* Pull the CTA up on mobile */
    .cta-section { margin-top: 0 !important; padding: 40px 15px !important; }
    .cta-section h3 { font-size: 1.5rem !important; }
    .book-now-btn { width: 100%; }
}