body {
    background: #f3f7fd;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #111827;
}

.page-title {
    font-weight: 900;
    color: #0f172a;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
    height: 100%;
}

.section-label {
    font-size: 13px;
    letter-spacing: 2px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.card-title-main {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 16px;
}

.icon-box {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef5ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.gauge-wrapper {
    position: relative;
    width: 100%;
    max-width: 330px;
    margin: auto;
}

.gauge-value {
    position: absolute;
    left: 0;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    color: #111827;
}

.service-badge {
    display: inline-block;
    background: #16864a;
    color: white;
    padding: 6px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
}

.service-badge.warning {
    background: #d97706;
}

.service-badge.danger {
    background: #dc2626;
}

.metric-label {
    color: #64748b;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.metric-value {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.app-card {
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    background: #ffffff;
}

.status-online {
    background: #e9fff3;
    color: #047857;
}

.status-offline {
    background: #fff1f1;
    color: #dc2626;
}

.status-pill {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 1px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f1f6ff;
    color: #334155;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px;
}

.table tbody tr:nth-child(odd) {
    background: #eef4ff;
}

.table tbody td {
    color: #3f4652;
    font-size: 14px;
    padding: 12px;
}

.rounded-table {
    border-radius: 14px;
    overflow: hidden;
}

.chart-box {
    height: 320px;
}

.chart-box-wide {
    height: 330px;
}

.mini-text {
    font-size: 14px;
    color: #64748b;
}

.storage-bar {
    height: 15px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
    border-radius: 999px;
    transition: width .4s ease;
}

.big-number {
    font-size: 34px;
    font-weight: 900;
    color: #111827;
}

.connection-pill {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.connection-pill.connected {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.connection-pill.disconnected {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(1.4); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .gauge-value {
        font-size: 30px;
    }

    .chart-box,
    .chart-box-wide {
        height: 260px;
    }
}
