/* ============================================================
    SPEED TEST TOOL MASTER CSS (Restored & Polished)
   ============================================================ */

/* --- 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; }
.dns-header { background: #2d2d2d; padding: 20px; font-size: 24px; font-weight: bold; border-bottom: 2px solid #444; color: #fff; text-align: center; }
.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 (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: 10px !important; } /* Added spacing back */

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

/* REINFORCED ACTIVE STATE */
.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 Connection Card - ADDED YELLOW LINE */
.sidebar-connection-info { 
    background: #1a1a1a; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #333; 
    border-top: 4px solid #ffbb33 !important; /* The Yellow Line */
}

.status-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.icon-green { color: #25D366 !important; }
.info-label { font-size: 0.75rem; color: #888; margin-top: 10px; }
.info-value-mono { color: #25D366; font-family: monospace; font-weight: bold; }
.info-value-white { color: #fff; font-size: 0.9rem; }

/* --- 3. MAIN CONTENT & SPEEDTEST FRAME --- */
.speedtest-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 #0078d4; }
.speedtest-title { margin-top: 0; color: #fff; }
.speedtest-subtitle { color: #aaa; margin-bottom: 20px; }

/* Responsive iframe Container */
.speedtest-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* Aspect Ratio for Desktop */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.speedtest-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- 4. BUTTONS & CTA --- */
.cta-section { background: #1a1a1a; padding: 60px 20px; text-align: center; border-top: 1px solid #333; margin-top: 40px; }
.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; }

/* --- 5. MOBILE FIXES --- */
@media (max-width: 900px) {
    .dns-container { flex-direction: column !important; padding: 15px !important; }
    .tool-sidebar-column { width: 100% !important; order: 2; }
    .tool-sidebar { display: none !important; }
    .speedtest-main-content { order: 1; width: 100% !important; overflow-x: hidden; }
    
    .speedtest-frame-container {
        padding-bottom: 150%; /* Taller aspect ratio for mobile view */
    }
    
    .book-now-btn { width: 100%; }
}