#qr-code-container {
    min-height: 230px;
    min-width: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#qr-code-loading {
    z-index: 10;
}

.font-monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    margin-bottom: 5px;
}

#recovery-codes-list li {
    padding: 8px;
    background-color: #f8f9fa;
    margin-bottom: 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1em;
}

#disable-2fa-btn {
    transition: all 0.3s;
}

#disable-2fa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#recovery-codes-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #0d6efd;
}

#disable-2fa-confirm-modal .modal-header {
    padding: 1rem 1.5rem;
}

#disable-2fa-confirm-modal .modal-body {
    padding: 1.5rem;
}

#disable-2fa-confirm-modal .alert-warning {
    border-left: 4px solid #ffc107;
}

#confirm-disable-2fa-btn {
    min-width: 120px;
}

.modal-backdrop.show {
    opacity: 0.8;
}

body.modal-open .modal-backdrop ~ .modal-backdrop {
    opacity: 0.5;
}

#disable-2fa-confirm-modal {
    z-index: 1060;
}

#qrCodeContainer {
    margin: 0 auto;
    width: 200px;
    height: 200px;
    background: white;
    padding: 10px;
    border-radius: 4px;
}

#qrCodeContainer svg {
    width: 100%;
    height: 100%;
}

#manual2FACode {
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: bold;
}

/* 2FA Code Input Styling */
.code-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.code-input-box {
    width: 50px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
    caret-color: #0d6efd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.code-input-box:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.code-input-box.filled {
    background-color: #f8f9fa;
}

.code-input-box.active {
    border-width: 2px;
    transform: translateY(-2px);
}

#backupCode, #initial2FACode {
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

@media (max-width: 576px) {
    .code-input-container {
        gap: 8px;
    }
    
    .code-input-box {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }
}

#backupCodesSection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tooltip-inner {
    max-width: none;
    background-color: var(--bs-success);
}

@media (max-width: 768px) {
    #configure2FAModal .modal-dialog {
        margin: 0.5rem auto;
    }
}