/* Horizontal Metrics Grid Styles */
.metrics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    flex: 1;
    min-width: 200px;
    max-width: calc(25% - 15px);
    background-color: rgba(0, 15, 0, 0.9);
    border: var(--matrix-border);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 255, 0, 0.2), 0 0 10px rgba(0, 255, 0, 0.7);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                repeating-linear-gradient(transparent, transparent 2px, rgba(0, 20, 0, 0.3) 2px, rgba(0, 20, 0, 0.3) 4px);
    pointer-events: none;
    z-index: -1;
}

.metric-card:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 12px 24px rgba(0, 255, 0, 0.3), 0 0 20px rgba(0, 255, 0, 0.7);
}

.server-metrics-container {
    background-color: rgba(0, 10, 0, 0.8);
    border: var(--matrix-border);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2), 0 0 10px rgba(0, 255, 0, 0.7);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    margin-bottom: 30px;
}

.server-metrics-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
                repeating-linear-gradient(transparent, transparent 2px, rgba(0, 20, 0, 0.5) 2px, rgba(0, 20, 0, 0.5) 4px);
    pointer-events: none;
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .metric-card {
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .metric-card {
        max-width: 100%;
    }
    
    .metrics-grid {
        flex-direction: column;
    }
}
