* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}
.container { 
    max-width: 800px; 
    margin: 0 auto; 
}
h1 { 
    text-align: center; 
    color: white; 
    margin-bottom: 2rem; 
    font-size: 2.5rem; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.card { 
    background: white; 
    margin-bottom: 1.5rem; 
    padding: 1.5rem; 
    border-radius: 12px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}
h2 { 
    color: #333; 
    margin-bottom: 1rem; 
    font-size: 1.3rem; 
}
.input-group { 
    display: flex; 
    gap: 0.5rem; 
    margin-bottom: 1rem; 
    flex-wrap: wrap;
}
input { 
    flex: 1; 
    padding: 0.75rem; 
    border: 2px solid #e5e7eb; 
    border-radius: 8px; 
    font-size: 16px; 
    min-width: 200px;
}
input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
button { 
    padding: 0.75rem 1.5rem; 
    background: #10b981; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s;
}
#disconnectBtn {
    background: red;
}
button:hover:not(:disabled) { background: #059669; transform: translateY(-1px); }
button:disabled, #disconnectBtn:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }
.result { 
    min-height: 20px; 
    padding: 0.75rem; 
    border-radius: 8px; 
    margin-top: 0.5rem; 
    font-family: monospace;
}
.result.success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.result.error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.status { 
    text-align: center; 
    padding: 0.75rem; 
    border-radius: 8px; 
    font-weight: bold; 
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .input-group { flex-direction: column; }
    input { min-width: auto; }
}