/* Base Styles */
.j2j-speedtest-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.j2j-speedtest-header {
    text-align: center;
    padding: 40px 20px;
    background: #2c3e50;
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.j2j-speedtest-title {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Toolbar Styles */
.j2j-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.j2j-test-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.j2j-test-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.j2j-test-btn.active {
    background: #2c3e50;
}

/* Webview Container */
.j2j-webview-container {
    position: relative;
    height: 600px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.j2j-webview {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading State */
.j2j-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    display: none;
}

.j2j-loading.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .j2j-webview-container {
        height: 400px;
    }
    
    .j2j-toolbar {
        flex-direction: column;
    }
    
    .j2j-test-btn {
        width: 100%;
    }
}