body {
    margin: 0;
    padding: 14px;
    background: #0b0b0b;
    font-family: Arial, sans-serif;
    color: #f2f2f2;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 35px;
    justify-items: center;
}

.card {
    min-width: 400px;
    max-width: 480px;
    width: 90%;
    
    background: linear-gradient(180deg, #171717 0%, #131313 100%);
    border-radius: 14px;
    padding: 26px 28px 20px;
    position: relative;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); */
}

.card.online-card {
  	box-shadow:
		0 0 0 1px rgba(102, 209, 122, 0.125),   /* subtle edge definition */
		0 0 6px rgba(102, 209, 122, 0.2),    /* soft glow */
		0 0 12px rgba(102, 209, 122, 0.125);   /* outer fade */
}

.card.stale-card {
    opacity: 0.92;
    background:  rgba(255, 179, 71, 0.10);
    box-shadow:
    0 0 0 1px rgba(255, 179, 71, 0.25),   /* subtle edge definition */
    0 0 12px rgba(255, 179, 71, 0.4),    /* soft glow */
    0 0 24px rgba(255, 179, 71, 0.25);   /* outer fade */
}

.card.offline-card {
  	background:  rgba(255, 107, 107, 0.10);
  	box-shadow:
  		0 0 0 1px rgba(255, 107, 107, 0.25),   /* subtle edge definition */
  		0 0 12px rgba(255, 107, 107, 0.4),    /* soft glow */
  		0 0 24px rgba(255, 107, 107, 0.25);   /* outer fade */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff7ef;
}

.status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    white-space: nowrap;
    color: #d8d8d8;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot.online {
    background: rgba(102, 209, 122, 0.6);
    box-shadow: 0 0 8px rgba(102, 209, 122, 0.9);
}

.dot.offline {
    background: #ff6b6b;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.9);
}

.dot.stale {
    background: #ffb347;
    box-shadow: 0 0 8px rgba(154, 160, 166, 0.7);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat {
    font-size: 18px;
    line-height: 1.25;
}

.stat-label {
    color: #d9d9d9;
}

.stat-value {
    font-weight: 700;
    color: #f2f2f2;
}

.good {
    color: #66d17a;
}

.warn {
    color: #ffb347;
}

.danger {
    color: #ff6b6b;
}

.offline-text {
    color: #ff6b6b;
    font-weight: 700;
}

.stale-text {
    color: #ffb347;
    font-weight: 700;
}

.footer {
    mmargin-top: 42px;
    text-align: right;
    font-size: 13px;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.footer-normal {
    color: #8a8f98;
}

.footer-offline {
    color: #ff6b6b;
}

.footer-stale {
    color: #ffb347;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filters button {
    background: #111;
    color: #ddd;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Hover baseline */
.filters button:hover {
    background: #1a1a1a;
}

/* Active state */
.filters button.active {
    color: #fff;
    font-weight: 600;
}

/* Individual states */
.filters button[data-filter="all"].active {
    box-shadow: 0 0 10px rgba(200, 200, 200, 0.3);
}

.filters button[data-filter="online"].active {
    color: #66d17a;
    box-shadow: 0 0 10px rgba(102, 209, 122, 0.4);
}

.filters button[data-filter="offline"].active {
    color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

.filters button[data-filter="unknown"].active {
    color: #ffb347;
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.4);
}