#wpspeedtestpro .latency-faster { color: green!important; }
#wpspeedtestpro .latency-slower { color: red!important; }
#latency-results th, #latency-results td { padding: 8px; }

#wpspeedtestpro .delete-button {
    background-color: #d9534f;
    color: white;
    border: none;
}

#wpspeedtestpro .delete-button:hover {
    background-color: #c9302c;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    margin: 15% auto;
    padding: 20px;
    width: 400px;
    background-color: white;
    border-radius: 5px;
}

.modal-footer {
    text-align: right;
    margin-top: 20px;
}

.modal-footer button {
    margin-left: 10px;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

#wpspeedtestpro .highlight-row {
    background-color: #f5f1ca;
    font-weight: bold;
}

#next-test-countdown {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

#latency-info-banner {
    position: relative;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    border-left: 4px solid #2271b1;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

#latency-info-banner h2 {
    font-size: 1.3em;
    margin: 0 0 15px 0;
}

#latency-info-banner h4 {
    color: #1d2327;
    font-size: 1.1em;
}

#latency-info-banner .notice-dismiss {
    padding: 10px;
    position: absolute;
    top: 0;
    right: 0;
    color: #787c82;
    background: none;
    border: none;
    cursor: pointer;
}

#latency-info-banner .notice-dismiss:hover {
    color: #d63638;
}

/* Status and Progress */
#test-status {
    margin: 20px 0;
    padding: 10px 12px;
}


.test-progress {
    height: 4px;
    background: #e5e5e5;
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}


.test-progress::after {
    content: '';
    display: block;
    width: 30%;
    height: 100%;
    background: #2271b1;    
    background-size: 400% 100%;
    animation: progress 1s infinite linear;
}


@keyframes progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(400%); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}


#latency-results td {
    vertical-align: middle;
}
.flag-icon {
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}


#wpspeedtestpro .latency-bubble {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

#wpspeedtestpro .latency-bubble.faster {
    background-color: #4CAF50;  /* Green */
}

#wpspeedtestpro .latency-bubble.slower {
    background-color: #f44336;  /* Red */
}

#wpspeedtestpro .latency-bubble.same {
    background-color: #9e9e9e;  /* Gray */
}

#wpspeedtestpro .latency-value {
    display: inline-block;
    vertical-align: middle;
}

.time-range-container {
    margin-top: 40px;
}
.graph-container {
    height: 400px;
    margin-bottom: 40px;
}
#tabs {
    margin-top: 20px;
}