/* --- Base Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

.dark body {
    background-color: #080808;
    color: #f3f4f6;
}

.nezha-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    padding: 16px 24px;
}

.dark .nezha-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Desktop Layout */
.server-main-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.stats-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metrics-row {
    display: flex;
    gap: 15px;
}

.metric-group {
    width: 70px;
    text-align: center;
}

.network-section {
    display: flex;
    gap: 12px;
    border-left: 1px solid rgba(156, 163, 175, 0.1);
    padding-left: 15px;
}

.net-item {
    width: 45px;
    text-align: center;
}

/* --- MOBILE SPECIFIC FIX --- */
@media (max-width: 768px) {
    .nezha-card {
        padding: 20px;
    }

    .server-main-content {
        flex-direction: column;
        align-items: center; /* Center Name */
        text-align: center;
        gap: 15px;
    }

    .stats-container {
        flex-direction: column; /* Place Network BELOW Metrics */
        gap: 10px;
        width: 100%;
    }

    .metrics-row {
        justify-content: center;
        width: 100%;
    }

    .network-section {
        border-left: none; /* Remove vertical line on mobile */
        padding-left: 0;
        justify-content: center; /* Center UP and DOWN */
        width: 100%;
        margin-top: 5px;
    }
    
    .status-dot {
        margin-bottom: 4px;
    }
}

/* Search UI */
#searchInput { width: 0; opacity: 0; transition: all 0.4s ease; border: none; background: transparent; }
#searchInput.active { width: 160px; opacity: 1; padding: 0 8px; }

/* Re-add your existing metric-label/value/sub classes here */
.metric-label { font-size: 8px; color: #6b7280; text-transform: uppercase; font-weight: 800; }
.metric-value { font-size: 13px; font-weight: 700; }
.metric-sub { font-size: 9px; color: #9ca3af; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.online-dot { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.offline-dot { background: #ef4444; }
.server-flag { width: 20px; height: 14px; border-radius: 2px; }