/* --- Status Page Styles --- */

.status-container {
    padding: 1rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-card:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Header */
.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.server-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge.online { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.status-badge.offline { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.status-badge.checking { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.status-badge.online .status-dot {
    box-shadow: 0 0 8px currentColor;
    animation: pulse 2s infinite;
}

/* Gauges / Bars */
.metric-row {
    margin-bottom: 0.5rem;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.metric-value {
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    color: #e2e8f0;
}

.progress-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease, background-color 0.3s ease;
}

/* Colors based on load */
.load-low { background: #22c55e; }
.load-mid { background: #eab308; }
.load-high { background: #ef4444; }

/* Footer */
.server-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
}

.uptime-val {
    color: #94a3b8;
    font-family: 'Fira Code', monospace;
}