:root {
    --primary: #2196F3;
    --success: #4CAF50;
    --error: #f44336;
    --warning: #ff9800;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f0f2f5;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Navbar Style */
.navbar {
    width: 100%;
    background-color: #2196F3;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.navbar li {
    display: inline;
    margin: 0 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.navbar a:hover {
    text-decoration: underline;
}

.speed-test {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 320px;
    text-align: center;
}

.meter {
    margin: 25px 0;
    position: relative;
}

.speed-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #eee;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
}

.speed-label {
    color: #666;
    margin-bottom: 12px;
    font-size: 16px;
}

.button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin-top: 20px;
    width: 100%;
}

.button:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.ip-info {
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.testing {
    border-color: var(--success);
    color: var(--success);
}

.error {
    border-color: var(--error);
    color: var(--error);
}

.status {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--success);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}