/* ============================================================
    SITE STATUS TOOL MASTER 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; }
.dns-container { display: flex; flex-direction: row; gap: 30px; padding: 30px; max-width: 1400px; margin: 0 auto; 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: 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;
}

/* 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 IP Card */
.sidebar-ip-card { background: #1a1a1a; padding: 20px; border-radius: 8px; border: 1px solid #333; }
.icon-green { color: #25D366 !important; }
.ip-label { font-size: 0.75rem; color: #888; margin-top: 10px; }
.ip-value { color: #25D366; font-family: monospace; font-weight: bold; }

/* --- 3. MAIN CONTENT --- */
.status-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 #25D366; }

.status-view-title { margin-top:0; color: #fff; }
.status-view-subtitle { color: #aaa; font-size: 0.9rem; }

.status-input-row { display: flex; gap: 10px; margin: 25px 0; flex-wrap: wrap; }
.status-url-field { flex: 1; min-width: 200px; padding: 12px; border-radius: 50px; border: 1px solid #444; background: #111; color: #fff; font-size: 16px !important; }

/* REINFORCED BUTTON BRANDING */
#scan-btn, button.scan { 
    padding: 12px 30px; 
    background: #25D366 !important; 
    border: 1px solid #25D366 !important; 
    color: #000 !important; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: bold; 
    display: inline-block; 
    transition: all 0.2s ease;
}
#scan-btn:hover { background: #20ba5a !important; }

/* --- 4. RESULT CARD --- */
.status-result-card { border: 1px solid #333; border-radius: 12px; padding: 25px; background: #111; }
.status-header-text { text-align: center; margin-bottom: 20px; }
.status-online { color: #25D366; margin: 0; font-size: 1.5rem; }
.status-offline { color: #ff4444; margin: 0; font-size: 1.5rem; }

.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; border-top: 1px solid #222; padding-top: 20px; }
.detail-item { background: #000; padding: 15px; border-radius: 8px; border: 1px solid #222; text-align: center; }
.detail-label { color: #666; font-size: 0.7rem; text-transform: uppercase; }
.detail-value { display: block; color: #fff; font-size: 1.1rem; margin-top: 5px; word-break: break-all; }

/* --- 5. CTA SECTION --- */
.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; }

/* --- 6. MOBILE FIXES --- */
@media (max-width: 900px) {
    .dns-container { flex-direction: column !important; padding: 15px !important; gap: 15px !important; }
    .tool-sidebar-column { width: 100% !important; order: 2; }
    .tool-sidebar { display: none !important; }
    .status-main-content { order: 1; width: 100% !important; overflow-x: hidden; }
    #scan-btn { width: 100%; }
    .book-now-btn { width: 100%; }
}