    html,body{
        border:none; padding:0; margin:0;
        background:#f4f4f9;
        color:#333;
        font-family:"Roboto",sans-serif;
    }
    body{
        text-align:center;
        /* background-image: url('SCTV_logo_sso.png');
        background-position: bottom right;
        background-repeat: no-repeat;
        background-size: 5%; */
    }

    #container{
        width: 55%;
        margin: auto;
    }

    button.loading {
        position: relative;
        opacity: 0.7;
    }
    
    .spinner {
        border: 2px solid #f3f3f3;
        border-top: 2px solid #3498db;
        border-radius: 50%;
        width: 12px;
        height: 12px;
        animation: spin 1s linear infinite;
        display: inline-block;
        margin-right: 5px;
        vertical-align: middle;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    h1{
        color:#333;
        margin-top:1em;
    }
    #startStopBtn {
        display: inline-block;
        position: absolute;
        right: -3.2em; /* Đặt nút cách mép phải 1em */
        top: 1em; /* Đặt nút cách mép trên 1em (tùy chỉnh nếu muốn) */
        color: #007bff;
        background-color: #fff;
        border: none;
        border-radius: 0.3em;
        box-sizing: border-box;
        width: 3em;
        height: 3em;
        line-height: 3em;
        cursor: pointer;
        box-shadow:0 0 10px rgba(0,0,0,0.1);
        font-size: 1em;
        margin: 0; /* Xóa margin để không ảnh hưởng vị trí */
    }
    #startStopBtn:hover{
        color:#0056b3;
    }
    #startStopBtn.running{
        color:#dc3545;
    }
   /* Trạng thái mặc định (Kiểm tra) */
#startStopBtn:before {
    content: "\f04b"; /* Mã Unicode của icon Play từ Font Awesome */
    font-family: "Font Awesome 5 Free"; /* Đảm bảo dùng đúng font */
    font-weight: 900; /* Font Awesome yêu cầu weight này cho solid icons */
    font-size: 16px; /* Kích thước icon */
    display: inline-block;
    width: 20px; /* Điều chỉnh kích thước nếu cần */
    height: 20px;
    text-align: center;
}

/* Trạng thái khi chạy (Hủy bỏ) */
#startStopBtn.running:before {
    content: "\f00d"; /* Mã Unicode của icon Stop/Hủy từ Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
}

/* Trạng thái hoàn tất (Làm lại) */
#startStopBtn.completed:before {
    content: "\f01e"; /* Icon Redo từ Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    display: inline-block;
    color:#28a745;
    width: 20px;
    height: 20px;
    text-align: center;
}

#checkBtn {
    display: inline-block;
    position: absolute;
    right:0;
    bottom: 0.1em;
    background-color: #fff;
    border: none;
    border-radius: 0.3em;
    box-sizing: border-box;
    width: 3em;
    height: 3em;
    line-height: 3em;
    cursor: pointer;
    font-size: 1em;
    margin: 0; /* Xóa margin để không ảnh hưởng vị trí */
    
}
#checkBtn:before {
    content: "\f14a"; /* Mã Unicode của icon Play từ Font Awesome */
    font-family: "Font Awesome 5 Free"; /* Đảm bảo dùng đúng font */
    font-weight: 900; /* Font Awesome yêu cầu weight này cho solid icons */
    font-size: 30px; /* Kích thước icon */
    display: inline-block;
    width: 20px; /* Điều chỉnh kích thước nếu cần */
    height: 20px;
    text-align: center;
}    


#submitBtn {
        display: inline-block;
        position: absolute;
        right: -3.2em; /* Đặt nút cách mép phải 1em */
        top: 5em; /* Đặt nút cách mép trên 1em (tùy chỉnh nếu muốn) */
        color: #0a9880;
        background-color: #fff;
        border: none;
        border-radius: 0.3em;
        box-sizing: border-box;
        width: 3em;
        height: 3em;
        line-height: 3em;
        cursor: pointer;
        box-shadow:0 0 10px rgba(0,0,0,0.1);
        font-size: 1em;
        margin: 0; /* Xóa margin để không ảnh hưởng vị trí */
    }
    #submitBtn:hover{
        color:#07c8d6;
    }
    #submitBtn:before {
    content: "\f1d8"; /* Mã Unicode của icon Play từ Font Awesome */
    font-family: "Font Awesome 5 Free"; /* Đảm bảo dùng đúng font */
    font-weight: 900; /* Font Awesome yêu cầu weight này cho solid icons */
    font-size: 16px; /* Kích thước icon */
    display: inline-block;
    width: 20px; /* Điều chỉnh kích thước nếu cần */
    height: 20px;
    text-align: center;
}    


#delBtn {
    display: inline-block;
    position: absolute;
    right: -3.2em; /* Đặt nút cách mép phải 1em */
    top: 9em; /* Đặt nút cách mép trên 1em (tùy chỉnh nếu muốn) */
    color: #e37362; 
    background-color: #fff;
    border: none;
    border-radius: 0.3em;
    box-sizing: border-box;
    width: 3em;
    height: 3em;
    line-height: 3em;
    cursor: pointer;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
    font-size: 1em;
    margin: 0; /* Xóa margin để không ảnh hưởng vị trí */
}
#delBtn:hover{
    color:#f53434;
}
#delBtn:before {
content: "\f1f8"; /* Mã Unicode của icon Play từ Font Awesome */
font-family: "Font Awesome 5 Free"; /* Đảm bảo dùng đúng font */
font-weight: 900; /* Font Awesome yêu cầu weight này cho solid icons */
font-size: 16px; /* Kích thước icon */
display: inline-block;
width: 20px; /* Điều chỉnh kích thước nếu cần */
height: 20px;
text-align: center;
}  

    #test{
        margin-top:0.5em;
        margin-bottom:4em;
    }
    div.testArea{
        display:inline-block;
        width:14.6em;
        height:9em;
        position:relative;
        box-sizing:border-box;
        background:#fff;
        border-radius:0.5em;
        box-shadow:0 0 10px rgba(0,0,0,0.1);
        padding:1em;
    }
    div.Ping{
        margin: 0 1em;
    }
    div.List{
        position: relative;
        width:46.5em;
        align-items: center;
        position:relative;
        box-sizing:border-box;
        margin:1em auto;
        background:#fff;
        border-radius:0.5em;
        box-shadow:0 0 10px rgba(0,0,0,0.1);
        padding:1em;
    }    
    .button-group {
        display: flex;
        position: absolute;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-start; /* Căn trái */
        gap: 10px; /* Khoảng cách giữa các phần tử */
        margin-bottom: 20px;
    }
    #progressBar{
		width:100% !important;
		height:0.3em;
		background-color:#EEEEEE;
		position:relative;
		display:block;
        /* margin-right: -20px;
        margin-left: -20px; */
        border-top-right-radius: 0.5em;
        border-top-left-radius: 0.5em;
		margin-top: -18px;
        margin-bottom:2em;
	}
	#progress{
		position:absolute;
		top:0; left:0;
		height:100%;
		width:0%;
        border-top-right-radius: 0.5em;
        border-top-left-radius: 0.5em;
		transition: width 2s;
		background-color:#90BBFF;
	}




    div.Download{
        position: relative;
        width:46.5em;
        height:18em;
        align-items: center;
        position:relative;
        box-sizing:border-box;
        margin:1em auto;
        background:#fff;
        border-radius:0.5em;
        box-shadow:0 0 10px rgba(0,0,0,0.1);
        /* padding:1em; */
    }    
    div.testName{
        position:absolute;
        top:0.5em; left:0;
        width:100%;
        font-size:1.2em;
        z-index:9;
        color:#555;
    }
    div.meterText{
        position:absolute;
        bottom:1.5em; left:0;
        width:100%;
        font-size:2.5em;
        z-index:9;
        color:#007bff;
    }
    div.meterTextDownload{
        position:absolute;
        bottom:0.5em; 
        left:0;
        width:100%;
        font-size:7.5em;
        z-index:9;
        color:#007bff;
    }   
    div.testConclusion{
        bottom:2em; left:0;
        position: relative;
        width:100%;
        font-size:12pt;
        z-index:9;
        color:#333;
	    text-shadow:0 0 10px #888;
    }
    #dlText{
        color:#007bff;
        transition: color 0.3s ease-in-out; 
    }

     
    #ulText{
        color:#28a745;
        transition: color 0.3s ease-in-out; 
    }
    #pingText,#jitText{
        color:#dc3545;
        transition: color 0.3s ease-in-out; 
    }
    div.meterText:empty:before{
        color:#ccc !important;
        content:"0.00";
    }
    div.unit{
        position:absolute;
        bottom:2em; left:0;
        width:100%;
        z-index:9;
        color:#777;
    }
    div.testGroup{
        display:inline-block;
        width: 46.5em;
        /* background-color: #28a745; */
    }

    [data-tooltip] {
        position: relative;
    }
    
    [data-tooltip]:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%; /* Hiển thị phía trên nút */
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 5px 10px;
        border-radius: 3px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    [data-tooltip]:hover::after {
        opacity: 1;
    }
    
    /* Điều chỉnh vị trí cho từng nút nếu cần */
    #startStopBtn[data-tooltip]:hover::after {
        left: 40%; /* Điều chỉnh vị trí tooltip */
    }
    
    #submitBtn[data-tooltip]:hover::after {
        left: 50%;
    }
    
    #delBtn[data-tooltip]:hover::after {
        left: 60%;
    }

.modal {
    display: none; /* Mặc định ẩn */
    position: fixed;
    z-index: 10000; /* Tăng z-index để đảm bảo modal ở trên cùng */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content input {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content input[readonly] {
    background-color: #f0f0f0;
}

.modal-content button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    display: block;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #0056b3;
}  
#testResultsTable{
    resize:both;
    overflow: auto;
}
.form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .form-group.row {
            flex-direction: row;
            gap: 10px;
        }
        .form-group.row .col {
            flex: 1;
        }
    

        #testResultsTableList {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            display: none;
        }
        #testResultsTableList th,
        #testResultsTableList td {
            border: 1px solid #ccc;
            padding: 8px;
            text-align: center;
            font-size: 14px;
        }
        #testResultsTableList th {
            background-color: #f4f4f4;
            font-weight: bold;
        }
/*         
        #testResultsTableList tbody tr:nth-child(1) {
            background-color: #e6f3ff;
        }
        #testResultsTableList tbody tr:nth-child(2) {
            background-color: #ffe6e6;
        }
        #testResultsTableList tbody tr:nth-child(3) {
            background-color: #e6ffe6;
        }
        #testResultsTableList tbody tr:nth-child(4) {
            background-color: #fff3e6;
        }
        #testResultsTableList tbody tr:nth-child(5) {
            background-color: #f3e6ff;
        }
        #testResultsTableList tbody tr:nth-child(6n+1) {
            background-color: #e6f3ff;
        }
        #testResultsTableList tbody tr:nth-child(6n+2) {
            background-color: #ffe6e6;
        }
        #testResultsTableList tbody tr:nth-child(6n+3) {
            background-color: #e6ffe6;
        }
        #testResultsTableList tbody tr:nth-child(6n+4) {
            background-color: #fff3e6;
        }
        #testResultsTableList tbody tr:nth-child(6n+5) {
            background-color: #f3e6ff;
        } */
        #testResultsTableList tbody tr.low-speed {
            background-color: #ffe6e6; /* Màu đỏ cho dlSpeed < 10 Mbps */
            color:#dc3545;
        }
        
        #testResultsTableList tbody tr.medium-speed {
            background-color: #fff3e6; /* Màu vàng cho 10 Mbps <= dlSpeed < 50 Mbps */
            color:rgb(244, 155, 38);
        }
        
        #testResultsTableList tbody tr.high-speed {
            /* background-color: #e6ffe6; Màu xanh cho dlSpeed >= 50 Mbps */
            color: #0056b3;
        }
        #testResultsTableList tbody tr:hover {
            background-color: #e0e0e0;
        }
        
        #loading-spinner {
            position: fixed;
            display: flex;
            left:0;
            top:0;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        
        }
        
        .spinner {
            border: 10px solid rgba(0, 0, 0, 0.3);
            border-left-color: #3498db;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg);     border-left-color:rgb(219, 52, 213); }
            to { transform: rotate(360deg);     border-left-color:rgb(45, 162, 6); }
        }
        .check-mark {
            font-size: 12px; /* Kích thước chữ */
            color: #28a745; /* Màu xanh lá cây */
            display: inline-block; /* Hiển thị như một phần tử inline-block */
            padding: 5px; /* Khoảng cách xung quanh */
            border: 2px solid #28a745; /* Viền màu xanh lá */
            border-radius: 50%; /* Hình tròn */
        } 
        .check_ok{color: #28a745;}    
        .warning-icon {
            font-size: 12px;
            color: #ffb007; /* Màu vàng cảnh báo */
            display: inline-block;
            padding: 5px;
            margin-bottom: -10px;
            border: 2px solid #ffb007;
            border-radius: 50%;
        }
        .warning{color: #ffb007;}
        
@media all and (max-width:65em){
    body{
        font-size:1em;
    }
    div.Download{
        position: relative;
        width:90%;
        height:19em;
        align-items: center;
        box-sizing:border-box;
        margin:1em auto;
        background:#fff;
        border-radius:0.5em;
        box-shadow:0 0 10px rgba(0,0,0,0.1);
        padding:1em;
    }  
    .dl{margin-top: -13px !important;}
    
    #progressBar{
		width:105% !important;
		height:0.3em;
		background-color:#eeeeee;
		position:relative;
		display:block;
        /* /* margin-right: -20px; */
        margin-left: -15px; 
        border-top-right-radius: 0.5em;
        border-top-left-radius: 0.5em;
		margin-top: -16px;
        /* margin-bottom:2em; */
	}
	#progress{
		position:absolute;
		top:0; left:0;
		height:100%;
		width:0%;
        border-top-right-radius: 0.5em;
        border-top-left-radius: 0.5em;
		transition: width 2s;
		background-color:#3498db;
	}
    div.List{

        width:90% !important;

    }
    div.testArea{
        width: 90%;
        margin:1em;
    }
    div.testGroup{
        position: relative;
        width: 90%;
    }    

    div.Ping{
        margin:0em 0em;
    }
    #container{
        width: 100%;
    }

}
    
@media all and (max-width:40em){
        body{
            font-size:0.8em;
        }
      
        button{
            width: 1em;
        }    
        div.Download{
        position: relative;
        width:90%;
        height:13.5em;
        align-items: center;
        position:relative;
        box-sizing:border-box;
        margin:1em auto;
        background:#fff;
        border-radius:0.5em;
        box-shadow:0 0 10px rgba(0,0,0,0.1);
        padding:1em;
    }  
    .dl{margin-top: -13px !important;}
    
    #progressBar{
		width:109% !important;
		height:0.3em;
		background-color:#EEEEEE;
		position:relative;
		display:block;
        /* /* margin-right: -20px; */
        margin-left: -12px; 
        border-top-right-radius: 0.5em;
        border-top-left-radius: 0.5em;
		margin-top: -13px;
        /* margin-bottom:2em; */
	}
	#progress{
		position:absolute;
		top:0; left:0;
		height:100%;
		width:0%;
        border-top-right-radius: 0.5em;
        border-top-left-radius: 0.5em;
		transition: width 2s;
		background-color:#3498db;
	}
    div.testArea{
        width: 90%;
        margin:1em;
    }
    div.List{
        width:90% !important;

    }
    div.testGroup{
        position: relative;
        width: 90%;
    }    
    div.Ping{
        margin:0em 0em;
    }

    .testArea{
        width: 90%;
    }
    #delBtn{
        width: 2em;
        height: 2em;
        line-height: 2em;
        font-size: 13pt;
        right: -2.2em; /* Đặt nút cách mép phải 1em */
        top: 5.5em; /* Đặt nút cách mép trên 1em (tùy chỉnh nếu muốn) */    
    }

    #submitBtn{
        width: 2em;
        height: 2em;
        line-height: 2em;
        font-size: 13pt;
        right: -2.2em; /* Đặt nút cách mép phải 1em */
        top: 3em; /* Đặt nút cách mép trên 1em (tùy chỉnh nếu muốn) */    
    }
    #startStopBtn{
        width: 2em;
        height: 2em;
        line-height: 2em;
        font-size: 13pt;
        right: -2.2em; /* Đặt nút cách mép phải 1em */
        top: 0.5em; /* Đặt nút cách mép trên 1em (tùy chỉnh nếu muốn) */    
    }        
    div.meterTextDownload{
        position:absolute;
        bottom:0.5em; 
        left:0;
        width:100%;
        font-size:5.5em;
        z-index:9;
        color:#007bff;
    }   
    #testResultsTableList{
        display: none;
    }
    div.tablecontainer {
        overflow-x: auto;
    }
    .modal-content {
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        width: 100%;
        max-width: 200px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    #speedInfoForm button[type="submit"] {
        width: 100% !important;
    }
    .check-mark {
        font-size: 8px; /* Giảm kích thước trên mobile */
        padding: 3px;
    }
    .warning-icon {
        font-size: 8px;
        padding: 3px;
    }
    #testResultsTableList th,
    #testResultsTableList td.kq {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
        font-size: 14px;
    }
}
