/* Основной стиль для мониторинга */
#Monitoring {
    display: block;
    position: relative;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    margin: -20px;
    width: 115%;
    border-radius: 10px;
    font-family: 'Minecraft', sans-serif;
    padding: 20px;
    background: #1e1e1e00;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
}

/* Анимация для загрузки */
@keyframes loading {
    0% {
        background-color: var(--color2);
    }

    50% {
        background-color: var(--color1);
    }

    100% {
        background-color: var(--color2);
    }
}

.loading {
    animation: loading 1.5s infinite;
}

/* Стили для каждого сервера */
.OneServer {
    margin: 20px auto;
    background: #33333338;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.OneServer .ServInfo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.OneServer .ServInfo .ServName {
    font-size: 15px;
}

.OneServer .ServInfo .ServOnline {
    font-size: 16px;
    color: #ddd;
}

.OneServer .BarCont {
    background: #444;
    border-radius: 5px;
    height: 20px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.OnlineBar {
    border-radius: inherit;
    height: 100%;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.175);
}

.offline {
    background: #fa3f3f;
}

.online {
    background: var(--color1);
}

.upderr {
    background: #fd1d1d;
}

#CommonBar {
    background: #7328a9;
}

.monTrouble {
    color: #a4a4a4;
    font-size: 14px;
    line-height: 20px;
    margin-top: 10px;
}

.monTooBig {
    font-size: 12px;
    padding: 0 !important;
}

#CommonOnline {
    margin: 25px 0 0;
    font-size: 14px;
    text-align: center;
    color: #ddd;
}

#CommonOnline p {
    position: relative;
    margin: 5px 0;
    padding: 2.5px 0;
    height: 20px;
}

.Ellipsis {
    position: relative;
    display: inline-block;
    text-align: center;
    width: 15px;
    height: 15px;
    padding-right: 5px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: bold;
    color: #bbb;
}

.Tooltipped {
    cursor: text;
    position: relative;
    /* Добавлено для корректного отображения тултипов */
}

.Tooltip {
    position: absolute;
    padding: 2px 4px;
    background: rgba(66, 66, 66, 0.9);
    border-radius: 0.2em;
    color: #fff;
    font-size: 12px;
    line-height: 14px;
    height: 14px;
    width: auto;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.175);
}

.Tooltip::after {
    content: '';
    position: absolute;
    border: 4px solid rgba(0, 0, 0, 0);
}

.Tooltip .Ellipsis {
    padding: 0;
    color: #bbb;
}

.ToolFix {
    position: relative;
    padding: 2px 4px;
    background: rgba(66, 66, 66, 0.9);
    border-radius: inherit;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.175);
    text-align: center;
}

.BotTool {
    bottom: -22px;
    left: 0;
    width: 100%;
    padding: 0 0;
    background: rgba(0, 0, 0, 0);
    text-align: center;
    box-shadow: none;
}

.BotTool::after {
    top: -10px;
    left: calc(50% - 3px);
    border-bottom: 4px solid rgba(66, 66, 66, 0.9);
}

.TopTool {
    top: -20px;
    left: 0;
    width: 100%;
    padding: 0 0;
    background: rgba(0, 0, 0, 0);
    text-align: center;
    box-shadow: none;
}

.TopTool::after {
    bottom: -9.5px;
    left: calc(50% - 3px);
    border-top: 4px solid rgba(66, 66, 66, 0.9);
}

.LeftTool {
    top: -2px;
    left: 120%;
}

.LeftTool::after {
    top: 5px;
    left: -8px;
    border-right: 4px solid rgba(66, 66, 66, 0.9);
}

.RightTool {
    top: -2px;
    left: -130%;
}

.RightTool::after {
    top: 5px;
    right: -8px;
    border-left: 4px solid rgba(66, 66, 66, 0.9);
}

/* Адаптивность */
@media (max-width: 600px) {
    #Monitoring {
        font-size: 14px;
        padding: 15px 10px;
    }

    .OneServer .ServInfo {
        flex-direction: column;
        align-items: flex-start;
    }

    .OneServer .ServInfo .ServName,
    .OneServer .ServInfo .ServOnline {
        float: none;
        text-align: left;
    }
}