.demos {
    display: block;
}

.demos div span:nth-child(2) {
    margin-left: 30px;
    line-height: 35px;
}

.status_up_datalogger{
    display: block;
    padding-left: 25%;
    margin-bottom: 8px;
    height: 15px;
    position: relative;
    color: #2ECC71;
}
.status_warning_datalogger{
    display: block;
    padding-left: 25%;
    margin-bottom: 8px;
    height: 15px;
    position: relative;
    color: #F39C12;
}
.status_down_datalogger{
    display: block;
    padding-left: 70px;
    margin-bottom: 8px;
    height: 15px;
    position: relative;
    color: #E74C3C;
}
.status_up_tooltip{
    color: #2ECC71;
}
.status_warning_tooltip{
    color: #F39C12;
}
.status_down_tooltip{
    color: #E74C3C;
}
.demo-up {
    display: block;
    height: 48px;
    position: relative;
    color: #2ECC71;
}

.demo-slow {
    display: block;
    height: 48px;
    position: relative;
    color: #F1C40F;
}

.demo-down {
    display: block;
    height: 48px;
    position: relative;
    color: #E74C3C;
}

/** Server status css **/
.server-status {
    left: 10px;
    top: 50%;
    margin-left: 0px;
    margin-top: -5px;
    position: absolute;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.server-status::before,
.server-status::after {
    left: 0;
    top: 50%;
    margin-left: -1px;
    margin-top: -6px;
    position: absolute;
    vertical-align: middle;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.server-status[type="up"],
.server-status[type="up"]::before,
.server-status[type="up"]::after {
    background: #2ECC71 ;
}

.server-status[type="down"],
.server-status[type="down"]::before,
.server-status[type="down"]::after {
    background: #E74C3C;
}

.server-status[type="slow"],
.server-status[type="slow"]::before,
.server-status[type="slow"]::after {
    background: #F1C40F;
}

.server-status[type="warning"],
.server-status[type="warning"]::before,
.server-status[type="warning"]::after {
    background: #F39C12;
}

.server-status::before {
    content: "";
    animation: bounce-custom 1.5s infinite;
}

.server-status::after {
    content: "";
    animation: bounce-custom 1.5s -0.4s infinite;
}

@keyframes bounce-custom {
    0% {
        transform: scale(1);
        -webkit-transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        -webkit-transform: scale(2);
        opacity: 0;
    }
}

@-webkit-keyframes bounce-custom {
    0% {
        transform: scale(1);
        -webkit-transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        -webkit-transform: scale(2);
        opacity: 0;
    }
}

.server-status1 {
    left: 2px;
    top: 50%;
    margin-left: 50px;
    margin-top: -5px;
    position: absolute;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    
}

.server-status1::before,
.server-status1::after {
    left: 0;
    top: 50%;
    margin-left: -1px;
    margin-top: -6px;
    position: absolute;
    vertical-align: middle;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.server-status1[type="up"],
.server-status1[type="up"]::before,
.server-status1[type="up"]::after {
    background: #2ECC71;
}

.server-status1[type="down"],
.server-status1[type="down"]::before,
.server-status1[type="down"]::after {
    background: #E74C3C;
}

.server-status1[type="slow"],
.server-status1[type="slow"]::before,
.server-status1[type="slow"]::after {
    background: #F1C40F;
}

.server-status1[type="warning"],
.server-status1[type="warning"]::before,
.server-status1[type="warning"]::after {
    background: #F39C12;
}

.server-status1::before {
    content: "";
    animation: bounce-custom 1.5s infinite;
}

.server-status1::after {
    content: "";
    animation: bounce-custom 1.5s -0.4s infinite;
}


.custom-tooltip {
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.custom-popup {
    min-width: 250px;
}
.custom-popup-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}
.custom-popup-content div {
    margin-bottom: 5px;
    font-size: 13px;
}
.custom-popup-content i {
    width: 24px;
    text-align: center;
    margin-right: 6px;
    color: #555;
}
.custom-popup-content b {
    display: inline-block;
    width: 100px; /* Cố định chiều rộng cho các nhãn */
    margin-right: 10px;
    color: #333;
}

.custom-popup-content span {
    flex: 1;
    font-weight: bold;
    color: #0077ff;
}

.view-more {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}




.status-tooltip[type="up"],
.status-tooltip[type="up"]::before,
.status-tooltip[type="up"]::after {
    background: #2ECC71;
}

.status-tooltip[type="down"],
.status-tooltip[type="down"]::before,
.status-tooltip[type="down"]::after {
    background: #E74C3C;
}

.status-tooltip[type="warning"],
.status-tooltip[type="warning"]::before,
.status-tooltip[type="warning"]::after {
    background: #F39C12;
}



.status-tooltip::before {
    content: "";
    animation: bounce-custom 1.5s infinite;
}

.status-tooltip::after {
    content: "";
    animation: bounce-custom 1.5s -0.4s infinite;
}

.tooltip-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Khoảng cách giữa status và location */
}
.status_up_tooltip,
.status_down_tooltip,
.status_warning_tooltip {
    display: flex;
    align-items: center;
}
.status-tooltip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.status-tooltip::before,
.status-tooltip::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.location-text {
    white-space: nowrap;
    font-weight: bold;
    font-size: 12px;
}