.mcss-widget,
.mcss-display {
max-width: 100%;
margin: 0;
padding: 0;
}
.mcss-server-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.mcss-server-image {
text-align: center;
margin-bottom: 15px;
}
.mcss-server-image img {
max-width: 100%;
height: auto;
border-radius: 6px;
max-height: 200px;
object-fit: cover;
display: block;
margin: 0 auto;
} .mcss-server-image img[src^="data:image"] {
width: 64px;
height: 64px;
object-fit: contain;
}
.mcss-server-info {
text-align: center;
}
.mcss-server-name {
font-size: 24px;
font-weight: bold;
margin: 0 0 10px 0;
color: #333;
}
.mcss-server-slogan {
font-size: 14px;
color: #666;
font-style: italic;
margin: 0 0 15px 0;
}
.mcss-server-status {
margin-top: 15px;
}
.mcss-status-online,
.mcss-status-offline {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border-radius: 20px;
font-weight: 500;
margin-bottom: 15px;
}
.mcss-status-online {
background-color: #e8f5e9;
color: #2e7d32;
}
.mcss-status-offline {
background-color: #ffebee;
color: #c62828;
}
.mcss-status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.mcss-status-indicator.online {
background-color: #4caf50;
box-shadow: 0 0 4px rgba(76, 175, 80, 0.6);
}
.mcss-status-indicator.offline {
background-color: #f44336;
box-shadow: 0 0 4px rgba(244, 67, 54, 0.6);
}
.mcss-server-details {
text-align: left;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #eee;
}
.mcss-detail-item {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #f5f5f5;
}
.mcss-detail-item:last-child {
border-bottom: none;
}
.mcss-detail-label {
font-weight: 500;
color: #666;
flex: 0 0 40%;
}
.mcss-detail-value {
color: #333;
text-align: right;
flex: 1;
}
.mcss-detail-value strong {
color: #2196f3;
font-size: 18px;
} .mcss-history-chart {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
margin-top: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.mcss-chart-title {
font-size: 18px;
font-weight: bold;
margin: 0 0 15px 0;
color: #333;
text-align: center;
}
.mcss-chart-container {
position: relative;
width: 100%;
height: 300px;
min-height: 300px;
}
.mcss-chart-canvas {
max-width: 100%;
width: 100% !important;
height: 300px !important;
min-height: 300px;
}
.mcss-widget .mcss-history-chart {
margin-top: 15px;
}
.mcss-widget .mcss-chart-container {
height: 250px;
}
.mcss-refresh-time {
text-align: center;
margin-top: 10px;
color: #999;
font-size: 12px;
} @media (max-width: 768px) {
.mcss-server-card {
padding: 15px;
}
.mcss-server-name {
font-size: 20px;
}
.mcss-detail-item {
flex-direction: column;
gap: 5px;
}
.mcss-detail-label {
flex: 1;
}
.mcss-detail-value {
text-align: left;
}
.mcss-chart-container {
height: 200px;
}
}