/* ==============================================================================
   Paired Devices & Device Pairing Styles
   ============================================================================== */

.devices-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.pairing-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.qr-wrapper {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.qr-wrapper img {
    display: block;
    width: 180px;
    height: 180px;
}

.pairing-info {
    flex: 1;
    min-width: 280px;
}

.pairing-code-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 2rem;
    letter-spacing: 4px;
    font-weight: 700;
    background: #21262d;
    color: #58a6ff;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px dashed #58a6ff;
    margin: 0.5rem 0;
}

.url-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #0d1117;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #30363d;
    margin-top: 0.5rem;
    word-break: break-all;
    font-size: 0.85rem;
}

.url-box input {
    background: transparent;
    border: none;
    color: #c9d1d9;
    width: 100%;
    outline: none;
    font-family: monospace;
}

.copy-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #30363d;
    color: #fff;
}

.table-responsive {
    overflow-x: auto;
}

.devices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.devices-table th,
.devices-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #21262d;
}

.devices-table th {
    background: #161b22;
    color: #8b949e;
    font-weight: 600;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.active {
    background: rgba(46, 160, 67, 0.15);
    color: #3fb950;
    border: 1px solid rgba(46, 160, 67, 0.4);
}

.status-pill.revoked {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.4);
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

/* Tablet Claim Screen */
.claim-card {
    max-width: 420px;
    margin: 3rem auto;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.code-input {
    font-family: monospace;
    font-size: 1.8rem;
    letter-spacing: 6px;
    text-align: center;
    text-transform: uppercase;
    padding: 0.6rem;
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #58a6ff;
    margin: 1.2rem 0;
    box-sizing: border-box;
}

.code-input:focus {
    border-color: #58a6ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}
