/* ================================
   Network Monitor - Fluid Pro Layout
================================ */

html {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fluid Page Wrapper */
.page-viewport {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

/* Header */
.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.top-back-btn:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    color: var(--text);
}

/* Main Content Area */
.page-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.tool-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1.2px;
}

.tool-head h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

/* Master Dashboard Card */
.dashboard-card {
    background: linear-gradient(145deg, rgba(18, 23, 36, 0.95), rgba(10, 14, 22, 0.98));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    width: 100%;
}

/* Status Banner */
.dash-status-row {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    flex-shrink: 0;
}

.pulse-dot.offline {
    background: #ff4d4d;
    box-shadow: 0 0 12px #ff4d4d;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-title {
    font-size: 14px;
    font-weight: 700;
}

.status-sub {
    font-size: 11px;
    color: var(--muted);
}

/* Metrics Grid (2x2) */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.8px;
}

.m-value {
    font-size: 18px;
    font-weight: 700;
    font-family: monospace;
    color: var(--text);
}

/* Specs Panel */
.specs-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 8px;
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-key {
    color: var(--muted);
}

.spec-val {
    color: var(--text);
    font-family: monospace;
    font-weight: 600;
    max-width: 65%;
    text-align: right;
    word-break: break-all;
}

/* Action Button */
.action-btn {
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 18px rgba(0, 255, 153, 0.25);
    transition: 0.2s;
}

.action-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Footer */
.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 8px 0;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
    width: 100%;
    margin-top: auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}