.chart-container {
    width: 80%;
    margin: 20px auto;
}
.test-controls {
    margin-bottom: 20px;
}
#error-message {
    margin: 10px 0;
}
#test-progress {
    margin: 10px 0;
    padding: 10px 12px;
}
.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 {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}
.modal-buttons {
    text-align: right;
    margin-top: 20px;
}
.modal-buttons button {
    margin-left: 10px;
}

.speed-test-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.speed-test-info p {
    margin: 5px 0;
}

.speed-test-legend {
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.speed-test-legend p {
    margin: 0;
    color: #666;
}


#performance-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);
}

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

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

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

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


.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: linear-gradient(
        to right,
        #2271b1,
        #4CAF50,
        #FFC107,
        #E91E63,
        #2271b1
    );
    background-size: 400% 100%;
    animation: 
        progress 1s infinite linear,
        rainbow 4s infinite linear;
}

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

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

