:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #22c55e;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    text-align: center;
}

.btn-refresh {
    background-color: transparent;
    border: 2px solid #64748b;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 4px 8px;
    margin-top: 5px;
}

.btn-refresh:hover {
    border-color: #94a3b8;
    color: white;
}

header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.connected {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--accent);
}

.status-badge.disconnected {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

#qr-code {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    margin: 20px auto;
    border: 4px solid white;
}

.loader {
    margin: 40px 0;
    color: var(--text-secondary);
    animation: pulse 1.5s infinite;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn:hover {
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
