/**
 * Everest Fiber Net - Diagnostics Tool
 * Compact Enterprise Design
 */

:root {
    --brand-blue: #1e73be;
    --brand-red: #e31c25;
    --status-green: #10b981;
    --status-yellow: #f59e0b;
    --evt-bg: #f8fafc;
    --evt-card-bg: #ffffff;
    --evt-text-main: #1e293b;
    --evt-text-muted: #64748b;
    --evt-radius: 10px;
    --evt-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--evt-bg);
    color: var(--evt-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

/* Ultra Compact Header */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.4rem 0;
    box-shadow: none;
}

.navbar-brand img { height: 38px; width: auto; }

/* Compact Status Banner with Dynamic Colors */
.status-banner {
    border-radius: var(--evt-radius);
    color: white;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.5s ease;
}

.status-banner.speed-low {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-banner.speed-high {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 8px;
    animation: pulse-white 1.5s infinite;
}

@keyframes pulse-white {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Cards & Metrics */
.card { border: none; border-radius: var(--evt-radius); box-shadow: var(--evt-shadow); background: var(--evt-card-bg); margin-bottom: 1.25rem; }
.card-header { background: transparent; border-bottom: 1px solid #f1f5f9; padding: 0.75rem 1rem; font-weight: 700; font-size: 0.9rem; color: var(--brand-blue); }
.card-body { padding: 1rem; }

.metric-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.6rem; text-align: center; }
.metric-value { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.metric-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--evt-text-muted); font-weight: 600; }

.table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #f1f5f9; font-size: 0.8rem; }
.table td:first-child { color: var(--evt-text-muted); width: 45%; }
.table td:last-child { font-weight: 600; text-align: right; }

.chart-container { position: relative; height: 140px; width: 100%; }

/* Contact Button */
.btn-contact {
    background-color: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-contact:hover { background-color: #155a96; color: white; }

/* Screenshot Mode */
body.screenshot-mode .navbar, body.screenshot-mode footer, body.screenshot-mode .btn, body.screenshot-mode .modal { display: none !important; }
body.screenshot-mode .card { break-inside: avoid; box-shadow: none; border: 1px solid #eee; }

@media (max-width: 768px) {
    .card-body { padding: 0.75rem; }
    .metric-value { font-size: 1.2rem; }
    .chart-container { height: 100px; }
}
