/* Connection Methods Styling */
.connection-methods {
    margin-bottom: 1.5rem;
}

.method-tabs {
    display: flex;
    border-radius: 0.5rem;
    background-color: var(--muted);
    padding: 0.25rem;
    gap: 0.25rem;
}

.method-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-tab:hover {
    background-color: var(--background);
    color: var(--foreground);
}

.method-tab.active {
    background-color: var(--background);
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.method-tab i {
    font-size: 1rem;
}

/* Connection Method Content */
.connection-method {
    margin-top: 1rem;
}

/* Phone Input Styling */
.phone-input-container {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.phone-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.phone-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.phone-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.phone-input::placeholder {
    color: var(--muted-foreground);
}

/* Pairing Code Display */
.pairing-code-display {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-align: center;
}

.pairing-code-container h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.pairing-code {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    background: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--primary);
    margin: 1rem 0;
    letter-spacing: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pairing-instructions {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin-top: 1rem;
    text-align: left;
}

.pairing-instructions strong {
    color: var(--foreground);
}

/* Button Animations */
.btn i.ri-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 640px) {
    .phone-input-wrapper {
        flex-direction: column;
    }
    
    .method-tabs {
        flex-direction: column;
    }
    
    .method-tab {
        justify-content: flex-start;
    }
    
    .pairing-code {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }
}