body {
    background-color: #222222;
    color: #eeeeee;
}

.uptime-stats {
    margin: 15px 0;
    color: #ffffff;
}

.uptime-bars {
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
}

.uptime-bar {
    height: 10px;
    width: calc((100% - 118px) / 60); /* 60 bars with 2px gaps */
    min-width: 4px;
    border-radius: 2px;
    flex-shrink: 1;
    background-color: #e0e0e0; /* Default gray color */
}

.uptime-bar.bg-success {
    background-color: #28a745;
}

.uptime-bar.bg-danger {
    background-color: #dc3545;
}

.uptime-info {
    font-size: 0.9rem;
    color: #aaaaaa;
}

.motd-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #333333;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    width: 100%;
    min-height: 84px; /* 64px icon + 20px padding */
}

.server-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.server-icon img {
    width: 64px;
    height: 64px;
    border-radius: 5px;
    border: 2px solid #444;
}

.motd-text {
    flex: 1;
    word-break: break-word;
    overflow: hidden;
    padding: 5px 0;
    line-height: 1.4;
    align-self: center;
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

/* Minecraft MOTD color and format styles */
span[style^="color:#"] {
    font-weight: bold !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* Format styles */
span[style*="font-weight:bold"] { /* §l - 粗体 */
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
}
span[style*="font-style:italic"] { /* §o - 斜体 */
    font-style: italic !important;
}
span[style*="text-decoration:underline"] { /* §n - 下划线 */
    text-decoration: underline !important;
}
span[style*="text-decoration:line-through"] { /* §m - 删除线 */
    text-decoration: line-through !important;
}

/* Specific color enhancements */
span[style*="#000000"] { /* §0 - 黑色 */
    text-shadow: none !important;
}
span[style*="#55FF55"] { /* §a - 绿色 */
    text-shadow: 0 0 3px rgba(85,255,85,0.7) !important;
}
span[style*="#FFAA00"] { /* §6 - 金色 */
    text-shadow: 0 0 3px rgba(255,170,0,0.7) !important;
}
span[style*="#FF5555"] { /* §c - 红色 */
    text-shadow: 0 0 3px rgba(255,85,85,0.7) !important;
}
span[style*="#FFFFFF"] { /* §f - 白色 */
    text-shadow: 0 0 3px rgba(255,255,255,0.7) !important;
}